Home >Backend Development >PHP Problem >How to delete php under lnmp

How to delete php under lnmp

藏色散人
藏色散人Original
2020-09-11 10:05:463666browse

lnmp method to delete php: First execute the command "/etc/init.d/php-fpm5.6 stop" to stop the PHP process; then delete the relevant directories and directories of the corresponding version through the command "rm -f" Just file.

How to delete php under lnmp

Recommended: "PHP Video Tutorial"

Take deleting PHP 5.6 version as an example:

First stop the process of PHP 5.6

/etc/init.d/php-fpm5.6 stop

Then delete the relevant directories and files of the corresponding version

rm -rf /usr/local/php5.6
rm -f /etc/init.d/php-fpm5.6
rm -f /usr/local/nginx/conf/enable-php5.6.conf

Note: If you use other versions, replace the previous version number

Finally pass Check the PHP running status to confirm that the uninstalled PHP version was successfully uninstalled

ps -ef|grep php-fpm

The main consideration is the compatibility of multiple versions of a service. When we install multiple versions of services on a server, we need to have Deploy only when you are confident enough. You can install and test it locally and then deploy it to an online environment. In addition, you need to be proficient in some popular software to avoid operational errors.

The above is the detailed content of How to delete php under lnmp. 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