# yum install yum-priorities -y
# rpm -ivh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
再來一鍵安裝所有套件...覽人包:
# yum install --enablerepo=remi -y nginx php php-fpm php-gd php-mysql php-mbstring php-xml php-mcrypt mysql mysql-server
再來預設開機就啟用
#chkconfig nginx on
#chkconfig php-fpm on
#chkconfig mysqld on
然後立即啟用
#service php-fpm start
#service nginx start
#service mysqld start
這樣就可以搞定安裝囉...是不是很簡單...當然裝完還要設定...待續~~
參考資料:http://www.lifelinux.com/how-to-install-nginx-and-php-fpm-on-centos-6-via-yum/3/