Yum-y Remove httpd
will be and httpd have a dependency on the package also deleted, is a relatively clean and easy way to unload, but there will still be missed.
can be used Rpm-qa | grep httpd See if there are omissions. If so, you can delete it with the RPM-E package name.
The ultimate way to leak: Httpd-v and which httpd
MySQL and PHP are also deleted in a similar way.
PHP relies on a lot of dependencies, you can first use Rpm-qa | grep PHP looks at all the dependencies, and then uses the command rpm-e the package name to delete them one by one. When you delete, you will be prompted with a dependency, prompting that package to be the first.
The approximate order is as follows:
Rpm-e php-fpm-5.3.3-22.el6.x86_64
Rpm-e php-pdo-5.3.3-22.el6.x86_64
Rpm-e Php-pear-1.9.4-4.el6.noarch
Rpm-e php-cli-5.3.3-22.el6.x86_64
Rpm-e php-5.3.3-22.el6.x86_64
Rpm-e php-xml-5.3.3-22.el6.x86_64
Rpm-e php-gd-5.3.3-22.el6.x86_64
Rpm-e php-common-5.3.3-22.el6.x86_64
Clean Delete MySQL
Yum remove MySQL mysql-server mysql-libs compat-mysql51
Rm-rf/var/lib/mysql
Rm/etc/my.cnf
See if you have MySQL software:
Rpm-qa|grep MySQL
which MySQL
Mysql-v
The above three command if there is return information, it is not deleted clean, continue to search for file deletion
re-install tutorial , installation of LEMP services (Nginx, Mariadb/mysql and PHP) under CentOS 7
CentOS Clean Uninstall Apache-php-mysql