摘要: nginx配置php报错找不到文件:not found file,是$document_root的设置问题。 因为$document_root 的参数是由root html那一行定义的,默认是在/usr/share/nginx/html/ 所以把 html换成站点根目录就正常了。 阅读全文
posted @ 2021-07-26 11:19 絮风幻影 阅读(455) 评论(0) 推荐(0) 编辑
摘要: nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 此报错为:logs目录下缺少pid文件。 解决方式:重新指定启动之时加载的配置文件,然后再重启,假如nginx的 阅读全文
posted @ 2021-07-26 10:57 絮风幻影 阅读(4244) 评论(0) 推荐(1) 编辑