Home>Article>Operation and Maintenance> How to uninstall apache on centos

How to uninstall apache on centos

藏色散人
藏色散人 Original
2019-08-07 11:05:02 4098browse

How to uninstall apache on centos

How to uninstall apache in centos?

There are many ways to uninstall Apache in CentOS system. Here are the built-in apache and the apache we installed. Now I will introduce to you how to uninstall Apache in CentOS and solve the problems encountered. plan.

How to uninstall apache in centos:

First close the httpd service

/etc/init.d/httpd stop

List httpd related packages

rpm -qa|grep httpd

List The package is as follows

httpd-2.2.3-63.el5.centos.1 httpd-manual-2.2.3-63.el5.centos.1

Uninstall the package

rpm -e httpd-manual-2.2.3-63.el5.centos.1 rpm -e system-config-httpd-1.3.3.3-1.el5

The uninstallation is completed

Uninstall the built-in Apache

1, # rpm - qa|grep httpd, view software packages related to httpd.

httpd-2.2.3-11.el5_2.centos.4

2. Then delete httpd:

# rpm -e httpd

Problem occurs:

error: Failed dependencies: httpd >= 2.2.0 is needed by (installed) gnome-user-share-0.10-6.el5.i386

3. There is also a related software package that has not been deleted, clear it, that is:

#rpm -e gnome-user-share

4. Delete httpd

# rpm -e httpd #可以使用参数–nodeps的意思就是不管各个程序包间的依赖关系。 #rpm -e –nodeps httpd //这样不需要删除gnome-user-share了

For more Apache related knowledge, please visit theApache Usage Tutorialcolumn!

The above is the detailed content of How to uninstall apache on centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use apache ab Next article:How to use apache ab