1.最小化安装系统.优化系统

[root@server ~]# head -n 1 /etc/issue

CentOS release 6.7 (Final)

[root@server ~]# uname -a

Linux server.la.webtest 2.6.32-573.22.1.el6.x86_64 #1 SMP Wed Mar 23 03:35:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

2.更新源

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

3.移除原mysql-libs-5.1.73-5.el6_7.1.x86_64

[root@server ~]# rpm -qa | grep mysql

mysql-libs-5.1.73-5.el6_7.1.x86_64

[root@server ~]# yum remove mysql-libs-5.1.73-5.el6_7.1.x86_64

Loaded plugins: fastestmirror, security

Setting up Remove Process

Resolving Dependencies

--> Running transaction check

---> Package mysql-libs.x86_64 0:5.1.73-5.el6_7.1 will be erased

--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-6.el6_7.1.x86_64

--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-6.el6_7.1.x86_64

--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-6.el6_7.1.x86_64

--> Running transaction check

---> Package postfix.x86_64 2:2.6.6-6.el6_7.1 will be erased

--> Processing Dependency: /usr/sbin/sendmail for package: cronie-1.4.4-15.el6_7.1.x86_64

--> Running transaction check

---> Package cronie.x86_64 0:1.4.4-15.el6_7.1 will be erased

--> Processing Dependency: cronie = 1.4.4-15.el6_7.1 for package: cronie-anacron-1.4.4-15.el6_7.1.x86_64

--> Running transaction check

---> Package cronie-anacron.x86_64 0:1.4.4-15.el6_7.1 will be erased

--> Processing Dependency: /etc/cron.d for package: sysstat-9.0.4-27.el6.x86_64

--> Processing Dependency: /etc/cron.d for package: crontabs-1.10-33.el6.noarch

--> Restarting Dependency Resolution with new changes.

--> Running transaction check

---> Package crontabs.noarch 0:1.10-33.el6 will be erased

---> Package sysstat.x86_64 0:9.0.4-27.el6 will be erased

--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================

 Package        Arch   Version           Repository                                Size

========================================================================================

Removing:

 mysql-libs     x86_64 5.1.73-5.el6_7.1  @updates                                 4.0 M

Removing for dependencies:

 cronie         x86_64 1.4.4-15.el6_7.1  @updates                                 174 k

 cronie-anacron x86_64 1.4.4-15.el6_7.1  @updates                                  43 k

 crontabs       noarch 1.10-33.el6       @anaconda-CentOS-201410241409.x86_64/6.6 2.4 k

 postfix        x86_64 2:2.6.6-6.el6_7.1 @updates                                 9.7 M

 sysstat        x86_64 9.0.4-27.el6      @anaconda-CentOS-201410241409.x86_64/6.6 825 k

Transaction Summary

========================================================================================

Remove        6 Package(s)

Installed size: 15 M

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Erasing    : sysstat-9.0.4-27.el6.x86_64                                          1/6 

  Erasing    : crontabs-1.10-33.el6.noarch                                          2/6 

  Erasing    : cronie-anacron-1.4.4-15.el6_7.1.x86_64                               3/6 

  Erasing    : cronie-1.4.4-15.el6_7.1.x86_64                                       4/6 

  Erasing    : 2:postfix-2.6.6-6.el6_7.1.x86_64                                     5/6 

  Erasing    : mysql-libs-5.1.73-5.el6_7.1.x86_64                                   6/6 

  Verifying  : cronie-1.4.4-15.el6_7.1.x86_64                                       1/6 

  Verifying  : cronie-anacron-1.4.4-15.el6_7.1.x86_64                               2/6 

  Verifying  : mysql-libs-5.1.73-5.el6_7.1.x86_64                                   3/6 

  Verifying  : sysstat-9.0.4-27.el6.x86_64                                          4/6 

  Verifying  : crontabs-1.10-33.el6.noarch                                          5/6 

  Verifying  : 2:postfix-2.6.6-6.el6_7.1.x86_64                                     6/6 

Removed:

  mysql-libs.x86_64 0:5.1.73-5.el6_7.1                                                  

Dependency Removed:

  cronie.x86_64 0:1.4.4-15.el6_7.1       cronie-anacron.x86_64 0:1.4.4-15.el6_7.1      

  crontabs.noarch 0:1.10-33.el6          postfix.x86_64 2:2.6.6-6.el6_7.1              

  sysstat.x86_64 0:9.0.4-27.el6         

Complete!

[root@server ~]# rpm -qa | grep mysql

4.安装最新mysql55w

[root@server ~]# yum -y install mysql55w mysql55w-server mysql55w-devel

4.安装最新php70w 及相关扩展

yum install  -y php70w php70w-mysql php70w-opcache php70w-gd php70w-mbstring php70w-pdo php70w-ldap php70w-devel php70w-fpm php70w-dba php70w-imap php70w-cli php70w-bcmath php70w-embedded php70w-enchant php70w-intl php70w-odbc php70w-pgsql php70w-phpdbg php70w-process php70w-pspell php70w-recode php70w-snmp php70w-soap php70w-tidy php70w-xml php70w-xmlrpc

5.加入自启动,并启动服务

[root@server ~]# chkconfig mysqld on

[root@server ~]# chkconfig httpd on

[root@server ~]# service mysqld restart

[root@server ~]# service httpd restart

6.验证 web访问主机IP 

安装结束