1.php-fpm.ini增加配置
pm.status_path = /4bc020cd40b51db16c85e685b86da43b
2.nginx增加本地配置
server
{
listen 3380;
server_name 127.0.0.1;
index index.html index.htm index.php;
error_page 404 /404.html;
location ~ /(4bc020cd40b51db16c85e685b86da43b)$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
}
}
3.检查配置是否正确
nginx -t && php-fpm -t
4.重启php-fpm, nginx
service php-fpm reload && service nginx reload
5.本地访问
curl http://127.0.0.1:3380/4bc020cd40b51db16c85e685b86da43b