标签:local clu centos params www 复制 更改 rip root
1.复制相应的文件
cp /usr/local/php7/etc/php-fpm.conf.default /usr/local/php7/etc/php-fpm.conf
cp /usr/local/php7/etc/php-fpm.d/www.conf.default /usr/local/php7/etc/php-fpm.d/www.conf
2.打开Nginx配置文件
vim /usr/local/nginx/conf/nginx.conf
取消注释 更改如下
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
3.启动php-fpm和Nginx
/usr/local/php7/sbin/php-fpm
/usr/local/nginx/sbin/nginx -s reload
标签:local clu centos params www 复制 更改 rip root
原文地址:http://www.cnblogs.com/wangshuyi/p/6340070.html