nginx php-fpm 配置

yum install nginx php php-fpm

#vim /etc/nginx/conf.d/default.conf 

    location ~ .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;
    }
    

  

原文地址:https://www.cnblogs.com/DDSys/p/4089613.html