nginx在执行systemctlstartnginx.service之后访问异常
作者:动易软件
来源:本站原创
点击数: 次
发布时间:2020年12月04日
问题:nginx在执行systemctl start nginx.service的那一瞬间网站可以访问,然后就会停掉,查看Nginx状态报PID file /var/run/nginx.pid not readable (yet?) after start错误,搜索百度是pid这个程序没有自动生成导致Nginx没有启动成功
解决办法:/usr/local/nginx/conf nginx.conf文件里面的pid项,给个具体的路径
然后重启nginx
systemctl restart nginx.service
查看状态是否正常
systemctl status nginx.service