Ubuntu安装Nginx和正确卸载Nginx
程序员文章站
2022-04-25 13:13:24
...
1.Ubuntu下安装Nginx比较简单
敲入下列命令即可:
sudo apt-get update
sudo apt-get install nginx
2.Ubuntu下卸载,稍不注意就会入坑
sudo apt-get remove nginx nginx-common # 卸载删除除了配置文件以外的所有文件。sudo apt-get purge nginx nginx-common # 卸载所有东东,包括删除配置文件。sudo apt-get autoremove # 在上面命令结束后执行,主要是卸载删除Nginx的不再被使用的依赖包。sudo apt-get remove nginx-full nginx-common #卸载删除两个主要的包。
上面的命令基本上都能解决你在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教程有兴趣的朋友有所帮助。
下一篇: JavaScript重点知识点总结2
推荐阅读
-
Ubuntu上安装Nginx服务器程序及简单的环境配置小结
-
Ubuntu16.04.1 安装Nginx的方法
-
Centos 安装 PHP7.4 和 Nginx的操作方法
-
基于ubuntu下nginx+php+mysql安装配置的具体操作步骤
-
Nginx 简介与安装、常用的命令和配置文件
-
Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found
-
在Linux里安装和启动nginx的方法
-
在Linux和Windows系统上安装Nginx服务器的教程
-
Ubuntu Server 16.04 LTS上怎样安装下载安装Nginx并启动
-
详解如何在CentOS7中使用Nginx和PHP7-FPM安装Nextcloud