码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu安装Nginx和正确卸载Nginx

时间:2019-11-28 23:07:06      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:注意   remove   简单   date   comm   问题   除了   删除   rem   

Ubuntu下安装Nginx比较简单
敲入下列命令即可:
sudo apt-get update
sudo apt-get install nginx

Ubuntu下卸载,稍不注意就会入坑
sudo apt-get remove nginx nginx-common # 卸载删除除了配置文件以外的所有文件。

sudo apt-get purge nginx nginx-common # 卸载所有东东,包括删除配置文件。

sudo apt-get autoremove # 在上面命令结束后执行,主要是卸载删除Nginx的不再被使用的依赖包。

sudo apt-get remove nginx-full nginx-common #卸载删除两个主要的包。

上面的命令基本上都能解决你在Ubuntu下安装卸载Nginx的问题。

Ubuntu安装Nginx和正确卸载Nginx

标签:注意   remove   简单   date   comm   问题   除了   删除   rem   

原文地址:https://blog.51cto.com/13293070/2454627

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!