CentOS 7.1 安装PHP 5.4.16
yum -y install php-fpm php-cli php-mysql php-gd php-ldap php-odbc php-pdo php-pecl-memcache php-pear php-mbstring php-xml php-xmlrpc php-mbstring php-snmp php-soap
CentOS 7.1 安装Nginx 1.9.3
yum -y install gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl–devel wget
wget http://nginx.org/download/nginx-1.9.4.tar.gz
tar -zxvf nginx-1.9.4.tar.gz
cd nginx-1.9.4
./configure –prefix=/usr/local/nginx
make && make install
/usr/local/nginx/sbin/nginx
yum install -y curl wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils hostname net-tools rsync man gcc gcc-c++ git make automake cmake patch logrotate python-devel libpng-devel libjpeg-devel
yum clean all
yum -y install nginx php-cli php-mysql php-pear php-ldap php-mbstring php-soap php-dom php-gd php-xmlrpc php-fpm php-mcrypt
yum clean all