打开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 |
选择需要的模块进行安装
展开全文
GreenCloudVPS$20/年多国机房可选,1核@Ryzen 3950x/1GB内存/30GB NVMe/10Gbps端口月流量2TBGreencloudVPS此次在四个机房都上线10Gbps大带宽VPS,并且全部采用AMD处理器,其中美国芝加哥机房采用Ryzen 3950x处理器,新加坡、荷兰阿姆斯特丹、美国杰克逊维尔机房采用Ryzen 3960x处理器,全部都是RAID-1 NVMe硬盘、DDR4 2666Mhz内存,GreenCloudVPS本次促销的便宜VPS最低仅需20美元/年,支持支付宝、银联和paypal。Gree... ![]() 零途云月付31.9元起,香港cn2 gia线路零途云是一家香港公司,主要产品香港cn2 gia线路、美国Cera线路云主机,美国CERA高防服务器,日本CN2直连服务器;同时提供香港多ip站群云服务器。即日起,购买香港/美国/日本云服务器享受9折优惠,新用户有优惠码:LINGTUYUN,使用即可打折。目前,零途云还推出性价比非常高香港多ip站群云服务器,有需要的,可以关注一下。零途云优惠码:优惠码:LINGTUYUN (新用户优惠,享受9折优... ![]() HostSlim,双E5-2620v2/4x 1TB SATA大硬盘,荷兰服务器60美元月hostslim美国独立日活动正在进行中,针对一款大硬盘荷兰专用服务器:双E5-2620v2/4x 1TB SATA硬盘,活动价60美元月。HostSlim荷兰服务器允许大人内容,不过只支持电汇、信用卡和比特币付款,商家支持7天内退款保证,有需要欧洲服务器的可以入手试试,记得注册的时候选择中国,这样不用交20%的税。hostslim怎么样?HostSlim是一家成立于2008年的荷兰托管服务器商,... ![]() lamp下载为你推荐
|