杀掉nginx进程以后无法重启nginx
  • 分类:php
  • 发表:2019-09-11
  • 围观(213)
  • 评论()

执行 nginx -s reload

nginx: [alert] kill(4538, 15) failed (3: No such process)

可能是以下原因
1.只是杀掉主进程,子进程还存在,端口占用
2.nginx进程被杀死后pid丢失了,下一次再开启nginx -s reload时无法启动

解决:
1. fuser -n tcp 80

查看80端口被哪些程序占用,杀掉占用子进程

2.设置nigix.conf文件

nginx   -c  /etc/nginx/nginx.conf

3. nginx -s reload

共有 0 条评论

analytical essay conclusion steps to writing an argumentative essay writing a scholarship essay essay introduction outline speech writing services custom dissertation writing master thesis proposal law essay help uk dissertation writing help essay outline format essay proofreading service