在我运行Ubuntu18.04.4LTS的web服务器上,很明显,nginx已经安装并正在运行:
sudo netstat -tulpn | grep LISTENtcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 967/nginx: master p然而,kill 967将使它再次繁衍.
我尽我所能尝试停止该服务,但没有任何效果:
service stop nginx停止:未识别的服务
systemctl kill nginx.service:未能杀死单元nginx.service:单元nginx.service未加载。
sudo nginx -s quit:sudo: nginx:命令未找到
sudo service status nginx:状态:未识别的服务
grep -r nginx /etc/init:空结果
我甚至不能卸载它:
sudo apt-get remove nginx:软件包'nginx‘没有安装,所以没有删除
我在哪里可以找到这种nginx服务,如何停止它?
更新:
ps -ax | grep nginx
967 ? Ss 0:00 nginx: master process /opt/opscode/embedded/sbin/nginx -c /var/opt/opscode/nginx/etc/nginx.conf
970 ? S 0:00 nginx: worker process
971 ? S 0:00 nginx: worker process
972 ? S 0:00 nginx: worker process
973 ? S 0:00 nginx: worker process
974 ? S 0:00 nginx: worker process
976 ? S 0:00 nginx: worker process
977 ? S 0:00 nginx: worker process
978 ? S 0:00 nginx: worker process
979 ? S 0:00 nginx: worker process
980 ? S 0:00 nginx: worker process
981 ? S 0:00 nginx: worker process
982 ? S 0:00 nginx: worker process
983 ? S 0:00 nginx: cache manager process
1252 pts/0 S+ 0:00 grep --color=auto nginx
3060 ? Ss 0:00 runsv nginx
3072 ? S 0:00 svlogd -tt /var/log/opscode/nginx发布于 2020-03-01 17:21:14
通过评论,我们发现有chef在运行nginx并防止它关闭(崩溃等等)。
由于服务器所有者不想使用厨师,所以我们决定卸载它:
chef-server-ctl uninstallhttps://stackoverflow.com/questions/60477631
复制相似问题