Home >Backend Development >PHP Tutorial >CTO's nginx deletes records under ubuntu
The apt method of installing software under ubuntu and debain is very convenient, especially for novices to install and uninstall nginx.
Since nginx cannot add modules dynamically, it will be frequently installed, uninstalled, and upgraded.
Install nginx Run sudo apt-get install nginx directly under ubuntu.
apt uninstall nginx method
Uninstall method 1.
# Delete nginx, keep the configuration file
sudo apt-get remove nginx
#Delete the configuration file
rm - rf /etc/nginx
Uninstall method 2.
#Delete nginx associated configuration files
sudo apt-get purge nginx # Removes everything.
You still need to execute sudo apt-get autoremove and there will be a prompt on the command line.
#Uninstall nginx dependent programs that are no longer needed
sudo apt-get autoremove
The above introduces CTO's nginx deletion records under ubuntu, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.