How to delete php under lnmp

藏色散人
Release: 2023-03-05 20:20:01
Original
3542 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!