Home >Operation and Maintenance >Nginx >The correct way to uninstall nginx

The correct way to uninstall nginx

王林
王林forward
2020-10-22 18:29:583805browse

The correct way to uninstall nginx

The specific steps are as follows:

(Recommended tutorial: nginx tutorial)

Step 1: Enter the following command to search globally nginx related files:

sudo find / -name nginx*

If an error occurs in the first step, try the command

 sudo find / -name "nginx*"

Step 2: Delete all found nginx related files

sudo rm -rf file 此处跟查找出来的nginx文件

Description: Global search Many related files are often found, but the prefixes are basically the same, and different parts can be replaced with * for quick deletion.

Example:

   sudo rm -rf file /usr/local/nginx*

The above is the detailed content of The correct way to uninstall nginx. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete