ubuntu如何卸載apache

ubuntu如何卸載apache

ubuntu如何卸載apache

ubuntu中apache2的安裝與卸載

一:安裝apache2

安裝命令:sudo apt-get install apache2

啟動/停止/重啟apache2: service apache2 start/stop/restart

二: 卸載apache2

(1)之前卸載重新安裝后找不到apache2.conf配置文件,測試使用一下方式卸載后可用。

    $?sudo?apt-get?--purge?remove?apache2     $?sudo?apt-get?--purge?remove?apache2.2-common     $?sudo?apt-get?autoremove

(2)(關鍵一步)找到沒有刪除掉的配置文件,一并刪除

    $?sudo?find?/etc?-name?"*apache*"?-exec?rm?-rf?{}?;     $?sudo?rm?-rf?/var/www

推薦學習:Apache教程

以上就是ubuntu如何卸載

? 版權聲明
THE END
喜歡就支持一下吧
點贊7 分享