在 Debian 上“卸载 nginxssl”通常有两种理解,我分别说明,你可以按实际情况选择。
nginx 本身没有叫 nginxssl 的包,SSL 只是配置。
sudo apt remove nginx nginx-common
或者彻底删除(含配置):
sudo apt purge nginx nginx-common
sudo rm -rf /etc/nginx
sudo rm -rf /etc/ssl/nginx # 如果有
sudo apt autoremove
先确认包名:
dpkg -l | grep nginx
或
apt list --installed | grep nginx
sudo apt remove nginxssl
或
sudo apt purge nginxssl
which nginx
nginx -v
无输出即已卸载。
如果你能贴一下:
dpkg -l | grep nginx
我可以更准确告诉你该卸载哪个包。