
php7-fpm默认监听的sock。和以前不一样 。以前是监听9000端口。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
server { listen 80; server_name ityhc.com www.ityhc.com; root /var/www/html/ityhc; index index.html index.htm index.php; location ~ .php?.*$ { root /var/www/html/ityhc; fastcgi_index index.php; fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
|
近期评论