我正在尝试使用naxsi将新模块添加到nginx,但是我应该重新安装nginx。删除nginx的更好方法是什么?

#1 楼

删除所有配置文件。

sudo apt-get remove nginx nginx-common


删除所有内容。

sudo apt-get purge nginx nginx-common


使用上述任何命令后,请使用它来删除nginx使用的不再需要的依赖项。

sudo apt-get autoremove


评论


rm -rf / etc / nginx也删除conf文件。

–scarver2
13年9月9日在21:10

@ scarver2这很旧,但这就是apt-get清除的作用。

– Squareborg
14年7月20日在13:48

也尝试sudo apt-get purge nginx-common

–弗朗西斯科·卢兹(Francisco Luz)
2015年2月16日,下午3:31

在Ubuntu 14.04中,现在是:sudo apt-get remove nginx-full nginx-common

–越南
16年4月24日在20:20

如果您的/etc/apt/source.list中有一些文件,也请删除它的ppa文件

– Balman Rawat
17年7月19日在4:55