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

今天扫描一台服务器,发现了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

        OK了
  在网上找了以下rpm还可以加一些参数
  如#rpm -e httpd --nodeps可以不用卸载这些依赖包
 

 

本文出自 “生锈的老枪_技术博客” 博客,转载请与作者联系!

你可能感兴趣的:(安装,休闲,is,needed,linux.httpd)