如何真正在 Ubuntu 上永远停止 NGINX?

How to really stop NGINX forever on Ubuntu?

在我的网络服务器上 运行 Ubuntu 18.04.4 LTS 显然安装了 nginx 运行:

sudo netstat -tulpn | grep LISTEN
tcp        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

通过评论我们指出有 chef 运行 nginx 并阻止它关闭(崩溃等)。

由于服务器所有者不想使用 chef,我们决定卸载它:

chef-server-ctl uninstall