Linux卸載系統(tǒng)自帶的httpd的方法
今天掃描linux的服務(wù)器,發(fā)現(xiàn)了httpd服務(wù)存在一些安全隱患,由于以前安裝過新版本的apache,安裝linux時自帶的httpd服務(wù)就沒必要留在系統(tǒng)里面了。于是進(jìn)行了:
#rpm -e httpd
結(jié)果,出現(xiàn)以下錯誤
httpd-mmn = 20020628 is needed by (installed) mod_perl-1.99_07-5
httpd-mmn = 20020628 is needed by (installed) mod_python-3.0.1-3
httpd-mmn = 20020628 is needed by (installed) mod_ssl-2.0.40-21
httpd-mmn = 20020628 is needed by (installed) php-4.2.2-17
libapr.so.0 is needed by (installed) mod_perl-1.99_07-5
libaprutil.so.0 is needed by (installed) mod_perl-1.99_07-5
webserver is needed by (installed) webalizer-2.01_10-11
httpd >= 2.0.40 is needed by (installed) mod_perl-1.99_07-5
httpd >= 2.0.40 is needed by (installed) mod_python-3.0.1-3
httpd is needed by (installed) mod_ssl-2.0.40-21
看來,要卸載這些東西還應(yīng)該卸載它的依賴包,于是
#rpm -e mod_ssl
#rpm -e mod_python
#rpm -e mod_perl
#rpm -e webalizer
把所有的依賴包都卸載后
再次 #rpm -e httpd 成功!
在網(wǎng)上找了以下rpm還可以加一些參數(shù)
如#rpm -e httpd --nodeps可以不用卸載這些依賴包
關(guān)鍵詞:Linux,httpd
閱讀本文后您有什么感想? 已有 人給出評價!
- 1
- 1
- 1
- 1
- 1
- 1