1、Ubuntu下安装Nginx

sudo apt-get update
sudo apt-get install nginx

2、在Ubuntu上卸载nginx

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

3、验证是否成功卸载nginx

#重启nginx,重启失败,说明已成功卸载nginx
sudo service nginx restart

谢谢阅读!

在Ubuntu上如何卸载nginx相关推荐

  1. Ubuntu下完全卸载nginx服务器

    删除nginx,–purge包括配置文件 sudo apt-get --purge remove nginx 自动移除全部不使用的软件包 sudo apt-get autoremove 列出与ngin ...

  2. ubuntu服务器完全卸载nginx服务器

    使用命令: 1.查看nginx的安装依赖 dpkg --get-selections|grep nginx 2.执行删除命令 sudo apt-get --purge remove nginx ngi ...

  3. Ubuntu安装Nginx和正确卸载Nginx Nginx相关

    1.Ubuntu下安装Nginx比较简单 敲入下列命令即可: sudo apt-get update sudo apt-get install nginx 2.Ubuntu下卸载,稍不注意就会入坑 s ...

  4. nginx+PHP+PHP-FPM(FastCGI)在Ubuntu上的安装和配置

    nginx+PHP+PHP-FPM(FastCGI)在Ubuntu上的安装和配置 0 之前知识回顾:  1) 目前各种服务器HTTP Server对PHP的支持一共有三种: a.通过HTTPServe ...

  5. flask uwsgi nginx 部署在 ubuntu 上

    flask 部署在 ubuntu 上 文章目录 flask 部署在 ubuntu 上 视频 创建部署目录 把项目放到部署目录中 安装虚拟环境 激活虚拟环境 安装python依赖库 安装uwsgi 创建 ...

  6. Ubuntu上安装nginx步骤及问题记录

    在Ubuntu上安装nginx,步骤如下:      1. 向/etc/apt/sources.list增加Nginx的源      2.执行sudo apt-get update更新软件源     ...

  7. Ubuntu上 anaconda的卸载

    在ubuntu上卸载anaconda的步骤 : (一)删除整个anaconda目录: 由于Anaconda的安装文件都包含在一个目录中,所以直接将该目录删除即可.到包含整个anaconda目录的文件夹 ...

  8. 如何在Ubuntu 18.04上安装/卸载NodeJS

    NodeJS is a JavaScript framework that allows you to build fast network applications with ease. In th ...

  9. ubuntu完全卸载nginx、mysql、docker

    ubuntu完全卸载nginx.mysql.docker 卸载nginx sudo apt-get remove nginx nginx-common sudo apt-get purge nginx ...

最新文章

  1. Machine Learning week 6 quiz: programming assignment-Regularized Linear Regression and Bias/Variance
  2. optee3.8 qemu_v8的环境搭建篇
  3. 记一次MyBatis的错误
  4. 2017面试分享(js面试题记录)
  5. Java ObjectOutputStream writeInt()方法及示例
  6. 挑战练习6.4 报告编译版本
  7. Win10 配置 Python 环境变量
  8. win7 远程桌面连接
  9. z-blogPHP在西部数码虚拟主机上遇到WTS-WAF错误拦截情况,协商好久他们还是妥协了...
  10. linux下QT发布程序双击打不开解决方法
  11. electron 自定义标题栏_如何在Electron Framework中创建自定义标题栏(灵感来自Visual Studio Code标题栏)...
  12. 计算机室内设计cad实践报告,cad室内设计实习报告
  13. Office 365实现多人在线编辑同一个文档(下)
  14. 高数 02.04隐函数的导数
  15. Bugly 遇到的问题总结
  16. Excel如何破解vba的宏密码
  17. 100张经典信息可视化图表,让你脑洞大开
  18. 计算机上的表格怎么打印不出来,电脑表格数字打不出来
  19. DataStage记录
  20. 高效学习 程序员练级攻略

热门文章

  1. 快出数量级的性能是怎样炼成的
  2. Excel 2016 for Mac 数据分析在哪里
  3. ThreadLocal源码分析(jdk1.8)
  4. substring( )的两种用法?
  5. 墙体建筑材料英国UKCA认证—EN1364-1
  6. 踩坑记录: Pytorch框架下--- 从零使用卷积神经网络实现人脸面部表情识别 (基于连续维度)
  7. AutoCAD2019无法安装.net开发向导
  8. 崩坏3服务器维护什么时候维护好,崩坏33月5日更新维护时间 崩坏33.8版本更新维护内容...
  9. 计算机里看不到移动硬盘,[求助]移动硬盘在我的电脑中看不见
  10. Access denied for use ‘xxxxx‘@‘localhost‘ (suing password : YES)解决方案详细操作流程