ubuntu完全重装nginx
1.先执行一下命令:
1.1 删除nginx,–purge包括配置文件
sudo apt-get --purge remove nginx
1.2 自动移除全部不使用的软件包
sudo apt-get autoremove
1.3 罗列出与nginx相关的软件
dpkg --get-selections|grep nginx
执行1.3的结果:stephen@stephen-OptiPlex-390:~$ dpkg --get-selections|grep nginxnginx installnginx-common installnginx-core install
1.4 删除1.3查询出与nginx有关的软件
sudo apt-get --purge remove nginxsudo apt-get --purge remove nginx-commonsudo apt-get --purge remove ngi...全文详见:这里
草根菜的爱https://xuehh.club
浙公网安备 33010602011771号