1. nginx php-fpm
yum install nginxyum install php-fpmlocation ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params;} systemctl restart nginx  systemctl restart php-fpm systemctl enable nginx  systemctl enable php-fpm原文:http://www.cnblogs.com/rongfengliang/p/6771399.html