zoukankan      html  css  js  c++  java
  • Ubuntu下安装与卸载Nginx

    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的问题。

  • 相关阅读:
    codechef BIBOARD
    Tree
    NOIWC2021总结
    星际穿越
    GDKOI总结
    lg4229
    P3320 [SDOI2015]寻宝游戏
    P6670 [清华集训2016] 汽水
    P6326 Shopping
    P3060 [USACO12NOV]Balanced Trees G
  • 原文地址:https://www.cnblogs.com/iamjqy/p/7443665.html
Copyright © 2011-2022 走看看