1 Ubuntu卸载nginx
1.1 dpkg -l | grep nginx #查找 Nginx 软件包
1.2 第二步
apt remove nginx nginx-common #移除系统中安装的nginx软件及其相关依赖包
1.3 #第三步
apt purge nginx nginx-common #完全卸载nginx软件及其相关依赖包
1.4 apt autoremove
1.5 apt remove nginx-full nginx-common
-
#第六步
-
service nginx restart #重启nginx
-
#第七步
-
nginx -v #查看nginx的版本
-
#第八步 如果 nginx-full 和 nginx-common没有删除干净的话,可以使用