rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
#安装php5.6
#安装依赖
yum install gd-last --enablerepo=remi
yum -y --enablerepo=remi install mysql mysql-server mysql-devel
yum -y --enablerepo=remi-php56 install php php-fpm php-mcrypt php-mbstring php-redis php-mysql php-gd php-mysql
安装 nginx 和 mysql
yum install vim-enhanced
yum -y --enablerepo=remi install mysql mysql-server mysql-devel
rpm -ivh http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm
yum -y install nginx
#开始自动启动
chkconfig nginx on
chkconfig mysqld on
chkconfig php-fpm on