我不能杀死nginx进程。 有一些与Python运行的东西:
python /usr/lib/python2.5/site-packages/producer.pyo --type=nginx
和主人和工人的进程和运行。 我不知道如何杀死那个。 用这个命令看看sudo ps -ef | grep -i nginx sudo ps -ef | grep -i nginx
输出:
amer@stream14:/etc$ sudo ps -ef | grep -i nginx root 3031 1 0 Oct27 ? 00:01:09 python /usr/lib/python2.5/site-packages/producer.pyo --type=nginx root 16271 16254 0 May24 ? 00:00:00 supervise nginx-purge www-data 17148 1 0 Oct27 ? 00:00:00 nginx: cache manager process www-data 17296 1 0 Oct27 ? 00:00:00 nginx: cache manager process www-data 17347 1 0 Oct27 ? 00:00:00 nginx: cache manager process www-data 18131 1 0 Oct26 ? 00:00:00 nginx: cache manager process www-data 20202 1 0 01:00 ? 00:00:00 nginx: cache manager process www-data 20256 1 0 01:01 ? 00:00:00 nginx: cache manager process www-data 20298 1 0 01:01 ? 00:00:00 nginx: cache manager process root 20989 16254 0 01:18 ? 00:00:00 supervise nginx root 21048 20989 0 01:19 ? 00:00:00 nginx: master process nginx www-data 21050 21048 0 01:19 ? 00:00:00 nginx: worker process www-data 21051 21048 0 01:19 ? 00:00:00 nginx: worker process www-data 21052 21048 0 01:19 ? 00:00:00 nginx: worker process www-data 21053 21048 0 01:19 ? 00:00:00 nginx: worker process www-data 21054 21048 0 01:19 ? 00:00:00 nginx: cache manager process www-data 21055 21048 0 01:19 ? 00:00:00 nginx: cache loader process root 21137 16254 0 01:20 ? 00:00:00 supervise accounting-nginx root 21138 21137 3 01:20 ? 00:00:00 python /usr/lib/python2.5/site-packages/producer.pyo --type=nginx amer 21143 17462 0 01:20 pts/0 00:00:00 grep -i nginx
看起来你正在使用daemontools来监督nginx。 不build议在生产模式下使用。 要停止它,只需下载nginx服务:
# svc -d /path/to/nginx/service
或停止supervise过程:
# /etc/init.d/svscan stop
并打开(或注释掉)Nginxconfiguration文件中的daemon指令。