老男人百科 > 百科 > 正文

Linux卸载系统自带的httpd的方法

2023-04-25 08:17:40 阅读( 5414)

今天扫描linux的服务器,发现了httpd服务存在一些安全隐患,由于以前安装过新版本的apache,安装linux时自带的httpd服务就没必要留在系统里面了。

今天扫描linux服务器,发现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,就不用卸载这些依赖包了。

猜你喜欢

Guessyoulike
不当的婚前性行为会造成什么危害?(婚前性行为的比例)
大姨妈期间可以体检吗(大姨妈期间可以喝咖啡吗)
九成男大学生会自慰(九成男大学生会自慰)
乳房发育会痛吗(男性乳房会发育吗)

乳房发育会痛吗(男性乳房会发育吗)

hao333 9895次阅读2023-03-22 12:12
专题页