#mkdir /var/www/yum_repo
1、nginx安装:
在http://nginx.org/en/linux_packages.html#stable中下载CentOSX对应版本的rpm文件
把下载的nginx-release-centos-5-0.el5.ngx.noarch.rpm拷贝到yum_repo目录下
#rpm -Uvh nginx-release-centos-5-0.el5.ngx.noarch.rpm
#yum install nginx
2、mysql安装:
在http://dev.mysql.com/downloads/repo/yum/中下载CentOSX对应版本的rpm文件
把下载的mysql-community-release-el5-5.noarch.rpm拷贝到yum_repo目录下
#rpm -Uvh mysql-community-release-el5-5.noarch.rpm
#yum install -y mysql-server mysql mysql-deve
3、PHP安装:
在/var/www/yum_repo下:
Centos 5.X
#rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
CentOs 6.x
#rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
CentOs 7.X
#rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
#rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
运行yum install
#yum install php55w php55w-cli php55w-common php55w-gd php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql php55w-pdo
注:如果想升级到5.6把上面的55w换成56w就可以了。
安装PHP FPM
#yum install php55w-fpm
注:如果想升级到5.6把上面的55w换成56w就可以了。