打开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 |
选择需要的模块进行安装
展开全文
pigyun25元/月,香港云服务器仅起;韩国云服务器,美国CUVIPpigyun怎么样?PIGYun成立于2019年,2021是PIGYun为用户提供稳定服务的第三年,期待我们携手共进、互利共赢。PIGYun为您提供:香港CN2线路、韩国CN2线路、美西CUVIP-9929线路优质IaaS服务。月付另有通用循环优惠码:PIGYun,获取8折循环优惠(永久有效)。目前,PIGYun提供的香港cn2云服务器仅29元/月起;韩国cn2云服务器仅22元/月起;美国CUVI... ![]() 香港 E5-2650 16G 10M 900元首月 美国 E5-2660 V2 16G 100M 688元/月 华纳云华纳云双11钜惠出海:CN2海外物理服务器终身价688元/月,香港/美国机房,免费送20G DDos防御,50M CN2或100M国际带宽可选,(文内附带测评)华纳云作为一家专业的全球数据中心基础服务提供商,总部在香港,拥有香港政府颁发的商业登记证明,APNIC 和 ARIN 会员单位。主营香港服务器、美国服务器、香港/美国OpenStack云服务器、香港高防物理服务器、美国高防服务器、香港高防I... ![]() 提速啦香港独立物理服务器E3 16G 20M 5IP 299元提速啦(www.tisula.com)是赣州王成璟网络科技有限公司旗下云服务器品牌,目前拥有在籍员工40人左右,社保在籍员工30人+,是正规的国内拥有IDC ICP ISP CDN 云牌照资质商家,2018-2021年连续4年获得CTG机房顶级金牌代理商荣誉 2021年赣州市于都县创业大赛三等奖,2020年于都电子商务示范企业,2021年于都县电子商务融合推广大使。资源优势介绍:Ceranetwo... ![]() lamp下载为你推荐
|