Linux卸載系統自帶的httpd的方法
今天掃描linux的服務器,發(fā)現了httpd服務存在一些安全隱患,由于以前安裝過新版本的apache,安裝linux時自帶的httpd服務就沒必要留在系統里面了。于是進行了:
#rpm -e httpd
結果,出現以下錯誤
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
看來,要卸載這些東西還應該卸載它的依賴包,于是
#rpm -e mod_ssl
#rpm -e mod_python
#rpm -e mod_perl
#rpm -e webalizer
把所有的依賴包都卸載后
再次 #rpm -e httpd 成功!
在網上找了以下rpm還可以加一些參數
如#rpm -e httpd --nodeps可以不用卸載這些依賴包
關鍵詞:Linux,httpd
閱讀本文后您有什么感想? 已有 人給出評價!
- 1
- 1
- 1
- 1
- 1
- 1