打开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 |
选择需要的模块进行安装
展开全文
OneTechCloud(31元),美国CN2 GIA高防VPS月OneTechCloud发布了本月促销信息,全场VPS主机月付9折,季付8折,优惠后香港VPS月付25.2元起,美国CN2 GIA线路高防VPS月付31.5元起。这是一家2019年成立的国人主机商,提供VPS主机和独立服务器租用,产品数据中心包括美国洛杉矶和中国香港,Cera的机器,VPS基于KVM架构,采用SSD硬盘,其中美国洛杉矶回程CN2 GIA,可选高防。下面列出部分套餐配置信息。美国CN... ![]() 无忧云( 9.9元/首月),河南洛阳BGP 2核 2G,大连BGP线路 20G高防 ,无忧云怎么样?无忧云服务器好不好?无忧云值不值得购买?无忧云,无忧云是一家成立于2017年的老牌商家旗下的服务器销售品牌,现由深圳市云上无忧网络科技有限公司运营,是正规持证IDC/ISP/IRCS商家,自营有国内雅安高防、洛阳BGP企业线路、香港CN2线路、国外服务器产品等,非常适合需要稳定的线路的用户,如游戏、企业建站业务需求和各种负载较高的项目,同时还有自营的高性能、高配置的BGP线路高防物理... ![]() ZJI韩国BGP+CN2服务器,440元起ZJI又上新了!商家是原Wordpress圈知名主机商:维翔主机,成立于2011年,2018年9月启用新域名ZJI,提供中国香港、台湾、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册等业务。本次商家新上韩国BGP+CN2线路服务器,国内三网访问速度优秀,适用8折优惠码,优惠后韩国服务器最低每月440元起。韩国一型CPU:Intel 2×E5-2620 十二核二十四线... ![]() lamp下载为你推荐
|