关于nginx启动
2018-11-19 dingshangchao 服务器
nginx安装启动成功后访问会提示
后加php文件提示错误
因为php-fpm未启动,sudo启动后可能会提示
File not found
配置文件中添加
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi.conf;
}
即可访问