5fccc071569cb436.jpg_fo742.jpg
apt install php
vim /etc/php/7.0/fpm/php-fpm.conf
###末尾增加
listen = /run/php/php7.0-fpm.sock

service php7.0-fpm restart

#调用
location ~ .php$ {
include snippets/fastcgi-php.conf;
#~ # With php7.0-cgi alone:
#~ fastcgi_pass 127.0.0.1:9000;
#~ # With php7.0-fpm:
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code