打开Terminate
输入sudo root并输入密码
输入su让当前用户以root权限进入
输入cd /etc/yum.repos.d
输入mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
来备份/etc/yum.repos.d/CentOS-Base.repo
输入wget/.help/CentOS6-Base-163.repo下载163源
输入mv /etc/yum.repos.d/CentOS6-Base-163.repo /etc/yum.repos.d/CentOS-Base.repo
输入yum makecache完成更新
安装并配置MySQL
1.1 执行yum命令安装MySQL
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQLSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): <-- 输入系统root密码 OK, essfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Set root password? [Y/n] <-- ENTER New password: <-- 你的MySQL root密码 Re-enter new password: <-- 你的MySQL root密码 Password updated essfully! Reloading privilege tables.. ... ess! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user ount created for
go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] <-- ENTER ... ess! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from work. Disallow root login remotely? [Y/n] <-- ENTER ... ess! By default, es with a database named 'test' that anyone can
before moving into a production environment. Remove test database and ess to it? [Y/n] <-- ENTER - Dropping test database... ... ess! - Removing privileges on test database... ... ess! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] <-- ENTER ... ess! Cleaning up... All done! If you'pleted all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! |
二、 安装Apache
2.1 使用yum命令安装Apache
chkconfig --levels 235 "> /etc/init.d/"> yum –y install php |
3.2 重启Apache服务器
yum search php |
选择需要的模块进行安装
展开全文
pacificrack:VPS降价,SSD价格下降之前几个月由于CHIA挖矿导致全球固态硬盘的价格疯涨,如今硬盘挖矿基本上已死,硬盘的价格基本上恢复到常规价位,所以,pacificrack决定对全系Cloud server进行价格调整,降幅较大,“如果您是老用户,请通过续费管理或升级套餐,获取同步到最新的定价”。官方网站:https://pacificrack.com支持PayPal、支付宝等方式付款VPS特征:基于KVM虚拟,纯SSD raid... ![]() Hostiger 16G大内存特价VPS:伊斯坦布尔机房,1核50G SSD硬盘200Mbps带宽不限流量$59/年国外主机测评昨天接到Hostigger(现Hostiger)商家邮件推送,称其又推出了一款特价大内存VPS,机房位于土耳其的亚欧交界城市伊斯坦布尔,核50G SSD硬盘200Mbps带宽不限月流量只要$59/年。 最近一次分享的促销信息还是5月底,当时商家推出的是同机房同配置的大内存VPS,价格是$59.99/年,不过内存只有10G,虽然同样是大内存,但想必这次商家给出16G,价格却是$59/年,... ![]() LOCVPS全场8折,香港云地/邦联VPS带宽升级不加价LOCVPS发布了7月份促销信息,全场VPS主机8折优惠码,续费同价,同时香港云地/邦联机房带宽免费升级不加价,原来3M升级至6M,2GB内存套餐优惠后每月44元起。这是成立较久的一家国人VPS服务商,提供美国洛杉矶(MC/C3)、和中国香港(邦联、沙田电信、大埔)、日本(东京、大阪)、新加坡、德国和荷兰等机房VPS主机,基于XEN或者KVM虚拟架构,均选择国内访问线路不错的机房,适合建站和远程办... ![]() lamp下载为你推荐
|