sysconfig/nginx-remove.sh
2023-06-28 01:45:19 +00:00

8 lines
226 B
Bash
Executable File

sudo service nginx stop
sudo apt-get remove nginx -y # 可删除除/etc/nginx 配置文件外的所有文件
sudo apt-get autoremove #自动删除安装nginx时安装的依赖包
sudo apt-get --purge remove nginx-common -y