打开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 |
选择需要的模块进行安装
展开全文
vpsdime:VPS内存/2核/VPS,4G内存/2核/50gSSD/2T流量/达拉斯机房达拉斯机房,新产品系列-Windows VPSvpsdime上了新产品系列-Windows VPS,配置依旧很高但是价格依旧是走低端线路。或许vpsdime的母公司Nodisto IT想把核心产品集中到vpsdime上吧,当然这只是站长个人的猜测,毕竟winity.io也是专业卖Windows vps的,而且也是他们自己的品牌。vpsdime是一家新上来不久的奇葩VPS提供商,实际是和backupspy以及crowncloud等都是同一家公司... ![]() georgedatacenter39美元/月$20/年/洛杉矶独立服务器美国VPS/可选洛杉矶/芝加哥/纽约/达拉斯机房/georgedatacenter这次其实是两个促销,一是促销一款特价洛杉矶E3-1220 V5独服,性价比其实最高;另外还促销三款特价vps,georgedatacenter是一家成立于2019年的美国VPS商家,主营美国洛杉矶、芝加哥、达拉斯、新泽西、西雅图机房的VPS、邮件服务器和托管独立服务器业务。georgedatacenter的VPS采用KVM和VMware虚拟化,可以选择windows... ![]() 傲游主机38.4元起,韩国CN2/荷兰VPS全场8折vps香港高防傲游主机怎么样?傲游主机是一家成立于2010年的老牌国外VPS服务商,在澳大利亚及美国均注册公司,是由在澳洲留学的害羞哥、主机论坛知名版主组长等大佬创建,拥有多家海外直连线路机房资源,提供基于VPS主机和独立服务器租用等,其中VPS基于KVM或者XEN架构,可选机房包括中国香港、美国洛杉矶、韩国、日本、德国、荷兰等,均为CN2或者国内直连优秀线路。傲游主机提供8折优惠码:haixiuge,适用于全... ![]() lamp下载为你推荐
|