Home  >  Article  >  Backend Development  >  Install Nginx on Ubuntu and uninstall Nginx correctly

Install Nginx on Ubuntu and uninstall Nginx correctly

WBOY
WBOYOriginal
2016-07-28 08:28:331244browse

1. Installing Nginx under Ubuntu is relatively simple

Just type the following command:

<code><span>sudo</span> apt-get update
    <span>sudo</span> apt-get install nginx</code>

2. Uninstall under Ubuntu, if you are not careful, you will get into trouble

<code><span>sudo</span> apt-get remove nginx nginx-common <span># 卸载删除除了配置文件以外的所有文件。</span><span>sudo</span> apt-get purge nginx nginx-common <span># 卸载所有东东,包括删除配置文件。</span><span>sudo</span> apt-get autoremove <span># 在上面命令结束后执行,主要是卸载删除Nginx的不再被使用的依赖包。</span><span>sudo</span> apt-get remove nginx-full nginx-common <span>#卸载删除两个主要的包。</span></code>

The above commands can basically solve your installation under Ubuntu Problem uninstalling Nginx.

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the installation of Nginx on Ubuntu and the correct uninstallation of Nginx, including the relevant content. 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