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!