显然我删除了 nginx 但它在启动时一直启动,我使用的是 lighttpd 但 nginx 首先启动导致 lighttpd 无法启动,所以在每次启动时我都必须停止 nginx 并手动启动 lighttpd。
我做过的事情:(command:输出)
apt-get remove nginx: 包 'nginx' 没有安装,所以没有删除service nginx status:[...] 活动:活动(正在运行)[...]update-rc.d nginx removechkconfig nginx:(nginx关闭)mv /etc/init.d/nginx /tmp/sysv-rc-conf:(它在每个运行级别被禁用)rcconf:(nginx未列出)
……还有很多 reboot
系统:运行 Raspbian 8 (Jessie) 的 RPi 3B
编辑:
dpkg -l | awk ' { print $2 } ' | grep ^nginx 输出:
nginx-common
nginx-full
Run Code Online (Sandbox Code Playgroud)