centos如何卸載apache

centos如何卸載apache

centos如何卸載apache?

在CentOS系統中卸載apache的方法有很多種,這里有自帶的apaceh與我們安裝的apache,下面我來給各位同學介紹在CentOS卸載Apache及碰到的問題解決方案。

centos卸載apache的方法:

首先關閉httpd服務

/etc/init.d/httpd?stop

列出httpd相關程序包

rpm?-qa|grep?httpd

列出包如下

httpd-2.2.3-63.el5.centos.1 httpd-manual-2.2.3-63.el5.centos.1

卸載包

rpm?-e?httpd-manual-2.2.3-63.el5.centos.1 rpm?-e?system-config-httpd-1.3.3.3-1.el5

這樣就卸載完成了

卸載自帶Apache

1、# rpm -qa|grep httpd,查看與httpd相關軟件包。

httpd-2.2.3-11.el5_2.centos.4

2、然后刪除httpd:

#?rpm?-e?httpd

出現問題:

error:?Failed?dependencies: httpd?>=?2.2.0?is?needed?by?(installed)?gnome-user-share-0.10-6.el5.i386

3、還有一個相關的軟件包沒有刪除,清除之,即:

#rpm?-e?gnome-user-share

4、再刪除httpd

?

#?rpm?-e?httpd #可以使用參數–nodeps的意思就是不管各個程序包間的依賴關系。 #rpm?-e?–nodeps?httpd?//這樣不需要刪除gnome-user-share了

?更多Apache相關知識,請訪問Apache使用教程欄目!

以上就是centos如何卸載

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