Home >Backend Development >PHP Tutorial >CTO's nginx deletes records under ubuntu

CTO's nginx deletes records under ubuntu

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 09:12:50842browse

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.

Statement:
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
Previous article:52 PHP pseudo-staticNext article:52 PHP pseudo-static