Linux卸载系统自带的httpd的方法
今天扫🔄描linux的服务器【qì】,发现了【le】httpd服务存【fú wù cún】🖌在一些安全隐【ān quán yǐn】患,由于以【yóu yú yǐ】前安装📸过新版本的【běn de】🚓apache,安装🕔linux时自带的httpd服务就没必要留在系🏾统里面【tǒng lǐ miàn】了【le】。于是进😉行了【le】:
#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
看来【kàn lái】🏡,要卸载😬这些东【zhè xiē dōng】西还应该卸载😥它的依赖包,于是【yú shì】
#rpm -e mod_ssl
#rpm -e mod_python
#rpm -e mod_perl
#rpm -e webalizer
把所有的依赖包都卸载后
再次【zài cì】 #rpm -e httpd 成功🧑!
在网上找了以下rpm还可以加一些参数
如#rpm -e httpd --nodeps可以不用卸载【yòng xiè zǎi】🚶这些依赖包【lài bāo】🌧
关键词:Linux,httpd
阅读本文后您有什么感想? 已有 人给出评价!
- 1
- 1
- 1
- 1
- 1
- 1