>  기사  >  백엔드 개발  >  Ubuntu安装Nginx和正确卸载Nginx

Ubuntu安装Nginx和正确卸载Nginx

WBOY
WBOY원래의
2016-07-28 08:28:331241검색

1.Ubuntu下安装Nginx比较简单

敲入下列命令即可:

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

2.Ubuntu下卸载,稍不注意就会入坑

<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>

上面的命令基本上都能解决你在Ubuntu下安装卸载Nginx的问题。

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

以上就介绍了 Ubuntu安装Nginx和正确卸载Nginx,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.