gpt4 book ai didi

nginx: [alert] kill(57200, 1) failed (3: No such process)

转载 作者:行者123 更新时间:2023-12-03 21:22:33 24 4
gpt4 key购买 nike

当我执行此命令时:

./nginx -s reload

抛出错误:
nginx: [alert] kill(57200, 1) failed (3: No such process)

当我打开 nginx.pid 文件时:
vim /usr/loca/nginx/logs/nginx.pid

进程 id 是:57200。但是当我检查 nginx 进程时,它没有主进程,输出是:
    [root@localhost logs]# ps -aux|grep nginx
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root 12191 0.0 0.0 28172 8956 ? S Aug29 3:54 nginx: worker process
root 12192 0.0 0.0 28172 8960 ? S Aug29 3:53 nginx: worker process
root 12193 0.0 0.0 28436 9272 ? S Aug29 3:46 nginx: worker process
root 12194 0.0 0.0 28172 8948 ? S Aug29 3:55 nginx: worker process
root 12195 0.0 0.0 28436 9156 ? S Aug29 3:56 nginx: worker process
root 12196 0.0 0.0 28172 8944 ? S Aug29 3:49 nginx: worker process
root 12197 0.0 0.0 28172 8988 ? S Aug29 3:58 nginx: worker process
root 12198 0.0 0.0 27908 8740 ? S Aug29 3:42 nginx: worker process
root 12199 0.0 0.0 27908 8744 ? S Aug29 3:39 nginx: worker process
root 53760 0.0 0.0 103252 832 pts/1 S+ 22:14 0:00 grep nginx
root 80835 0.0 0.0 27908 8740 ? S Aug31 2:30 nginx: worker process

怎么了?如何解决这个问题呢? nginx 版本是 1.10.2。

最佳答案

我在 nginx 1.10.2 上也遇到了类似的问题。

而不是 ./nginx -s reload , 我用过 ./nginx启动nginx并解决了这个问题。

关于nginx: [alert] kill(57200, 1) failed (3: No such process),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52188496/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com