安裝
apt-get install php-fpm
編輯 /etc/nginx/sites-enabled/default 修改
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
查詢PHP 版本及相關服務
ls /var/run/php/*.sock
systemctl list-unit-files
沒有留言:
張貼留言