1、在配置文件/usr/local/php/etc/php-fpm.conf文件中找到
<value name= "listen_address"
>127.0.0.1:9000</value>
改为
<value name=
"listen_address"
>
/var
/run/phpfpm.sock</value>
重启php-fpm
/usr/local/php/sbin/php-fpm restart
2、配置nginx
在/usr/local/nginx/conf/nginx.conf中找到
fastcgi_pass 127.0.0.1:9000;
改为
fastcgi_pass unix:/
var
/run/phpfpm.sock;
重启nginx
/usr/local/nginx/sbin/nginx -s reload