安装
apt-get install nginx
卸载
1.删除nginx,–purge包括配置文件
sudo apt-get --purge remove nginx
2.自动移除全部不使用的软件包
sudo apt-get autoremove
3.罗列出与nginx相关的软件
dpkg --get-selections|grep nginx
4. 删除1.3查询出与nginx有关的软件
sudo apt-get --purge remove nginx
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx-core