Home > Article > Operation and Maintenance > How to uninstall nginx?

How to uninstall nginx?
First enter the command ps -ef | grep nginx to check whether the nginx service is running

Execute the commands kill -9 10398 and kill -9 10399 Stop the nginx process (10398 and 10399 are the nginx process numbers found in step 1)

Execute the command find / -name nginx to find all files whose names contain nginx

Execute the command rm -rf /usr/local/nginx Delete the relevant files installed by nignx

Run the nginx service startup command / usr/local/nginx/sbin/nginx, the service startup file cannot be found, proving that the deletion is successful

For more Nginx related knowledge, please visit Nginx Use the tutorial column!
The above is the detailed content of How to uninstall nginx?. For more information, please follow other related articles on the PHP Chinese website!