Centos7 uninstall Nginx and PHP, php-fpm method

Source: Internet
Author: User
Tags fpm

This article environment: CENTOS7, yum-style installation Nginx and PHP, PHP-FPM

Before is through the Yum Way directly installs Nginx and PHP, PHP-FPM, this kind of advantage is convenient, does not need step by step installs solves each dependent package problem, now the situation is special, wants to unload already installs the Nginx and the PHP, the PHP-FPM, the method is as follows:

Enter the command first: Yum remove Nginx then print the following text on the screen:

Loaded plug-ins: Fastestmirror, langpacks resolving dependencies-checking Transactions---> Package nginx.x86_64.1.1.8.0-1.el7.ngx will be deleted--resolve dependencies complete   Dependency Resolution  ============================================================================================ ================ package               architecture                   releases                                 sources                     size =================================== ========================================================================= being deleted:  nginx                x86_64                1:1.8.0-1.EL7.NGX   & nbsp               @nginx                889 k  Transaction summary ============================================================================================================ Remove  1 Package   Installation size: 889 K Do you want to continue? [y/n]:ydownloading packages:running transaction checkrunning transaction testtransaction test succeededrunning transaction  deleting   &nbsp: 1:nginx-1.8.0-1.el7.ngx.x86_64               &NBS P                          ,         &NB Sp      1/1  Warning:/etc/nginx/nginx.conf has been saved as/etc/nginx/nginx.conf.rpmsave  verification     &NBSP: 1:nginx-1.8.0-1.el7.ngx.x86_64                                                          1/1    Delete:  nginx.x86_64 1:1.8.0-1.el7.ngx                                     &NBSP                          ,         &NB Sp    finished!
To this, uninstall Nginx finished, you can use which nginx to find out if uninstall completely! [email protected] ~]# which Nginx/usr/bin/which:no nginx in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root /bin)

Next demo uninstall PHP and PHP-FPM

input command: Yum remove PHP
Loaded plug-ins: Fastestmirror, langpacks resolving dependencies-checking Transactions---> Package php.x86_64.0.5.4.16-36.el7_1 will be deleted--resolve dependencies complete   Dependency Resolution  ============================================================================================ ================ package             architecture             &NBSP ;     version                             &NBSP source ;                       size ========================================== ================================================================== deleting:  php                 x86_64                 5.4.16-36.el7_1       & nbsp           @updates                 4.4 m  Transaction summary ======== ==================================================================================================== Remove  1 Package   installation size: 4.4 m Do you want to continue? [y/n]:ydownloading packages:running transaction checkrunning transaction testtransaction test succeededrunning transaction  deleting   &nbsp: php-5.4.16-36.el7_1.x86_64                 nbsp                          ,         &NB Sp        1/1   validation      : php-5.4.16-36.el7_1.x86_64       &NBSP ;                          ,         &NB Sp                  1/1   Delete:  php.x86_64 0:5.4.16-36.el7_1 &nbsp ;                          ,         &NB Sp             &NBSp                           ! [[email protected] ~]# yum remove php-fpm loaded plugin: fastestmirror, langpacks resolving dependencies-checking transactions---> Packages Php-fpm.x86_64.0.5.4.16-36.el7_1 will be removed--resolve dependency completion   dependency Resolution  ========================================== ================================================================== package                 Architecture                   version                             source                 & nbsp     Size ================================================================================================ ============ being deleted:  php-fpm                x86_64         & nbsp      5.4.16-36.el7_1                 @updates                4.5 m  transaction summary ===================== ======================================================================================= removing  1 packages   Installation size: 4.5 m Do you want to continue? [y/n]:ydownloading packages:running transaction checkrunning transaction testtransaction test succeededrunning transaction  deleting   &nbsp: php-fpm-5.4.16-36.el7_1.x86_64               &NBS P                          ,         &NB Sp      1/1   verification      : php-fpm-5.4.16-36.el7_1.x86_64         & nbsp                          ,         &NB Sp            1/1   Delete:  php-fpm.x86_64 0:5.4.16-36.el7_1       & nbsp                              ,         &N Bsp                           !
not fully uninstalled yet, you can use PHP-V to see[Email protected] ~]# php-vphp 5.4.16 (CLI) (Built:jun 21:17:27) Copyright (c) 1997-2013 the PHP groupzend Engi Ne v2.4.0, Copyright (c) 1998-2013 Zend Technologies[[email protected] ~]# rpm-qa|grep phpphp-common-5.4.16-36.el7_1.x86 _64php-cli-5.4.16-36.el7_1.x86_64[[email protected] ~]# rpm-e php-common-5.4.16-36.el7_1.x86_ 64 error: Dependency detection failed: Php-common (x86-64) = 5.4.16-36.el7_1 was (installed) php-cli-5.4.16-36.el7_1.x86_64 required [[email protected] ~]# RPM-E p Hp-cli-5.4.16-36.el7_1.x86_64[[email protected] ~]# rpm-e php-common-5.4.16-36.el7_1.x86_64[[email protected] ~]#    Which Php/usr/bin/which:no PHP in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin) OK, all uninstall complete! http://blog.csdn.net/caozaifei/article/details/53424758

Centos7 uninstall Nginx and PHP, php-fpm method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.