Failed to start A high performance web server and a reverse proxy server

apt-get remove --purge xxx # 移除应用及配置
apt-get autoremove # 移除没用的包

Since you managed to install it anyhow first thing you've to do is to remove it completely with the configuration files

Follow these steps to remove it completely and install it again.

  • Open terminal and execute these commands:

    sudo apt-get autoremove nginx
    sudo apt-get --purge remove nginx
    sudo apt-get autoremove && sudo apt-get autoclean
    sudo find / | grep nginx | sudo xargs rm -rf
    

    the last command will remove the repository also so you've to add it again by:

    sudo add-apt-repository ppa:nginx/stable
    

    Now try to install it again by:

    sudo apt-get update && sudo apt-get -f install nginx
    
  • Hope it would solve your issue. Reply if you get any error at any particular command describing the command.

This is the output of

sudo dpkg -l | grep nginx:

ii  nginx                                       1.4.3-1~precise0                                    small, powerful, scalable web/proxy server
ii  nginx-common                                1.4.3-1~precise0                                    small, powerful, scalable web/proxy server - common files
ii  nginx-full                                  1.4.3-1~precise0                                    nginx web/proxy server (standard version)

whereis nginx:

nginx: /usr/sbin/nginx /etc/nginx /usr/share/nginx /usr/share/man/man1/nginx.1.gz
shareimprove this answer

nginx 安装失败 没有/etc/nginx目录相关推荐

  1. linux nginx 安装stream,Centos7下Nginx简单搭建与stream模块简单配置

    一:Nginx安装 搭建环境:Centos 7 需要软件包:openssl.zlib.pcre.nginx (软件包下载地址个人网盘可能会失效:https://pan.baidu.com/s/1qYN ...

  2. linux系统nginx安装教程,Linux下Nginx安装教程

    Linux下Nginx安装教程分享,具体内容如下 1.安装编译文件及库文件 yum -y install make zlib zlib-devel gcc-c++ libtool openssl op ...

  3. python安装失败0x80070570_0x80070570 文件或目录损坏且无法读取 CHKDSK 修复方法

    错误 0x80070570: 文件或目录损坏且无法读取. 不要太担心是出现了磁盘坏道,也许只是小小的存储问题.解决方法很简单,用chsdsk命令即可.方法如下:开始--运行--输入cmd--输入chk ...

  4. python安装失败0x80070570_0x80070570 文件或目录损坏且无法读取解决方法

    不要太担心是出现了磁盘坏道,也许只是小小的存储问题.解决方法很简单,用 chsdsk 命 令即可. 方法如下 : 开始 -- 运行 -- 输入 cmd-- 输入 chkdsk 盘符 : /f ,例如: ...

  5. 12.6-12.9 Nginx安装,默认虚拟主机,用户认证,域名重定向

    12.6 Nginx安装 大纲 1 进入src目录,把nginx下载在此目录 #cd  /usr/local/src #wget http://nginx.org/download/nginx-1.8 ...

  6. Nginx安装、卸载、基础命令、配置

    Nginx安装.卸载.基础命令 安装 gcc安装失败 卸载 检查nginx服务启动情况 如果服务加入了自启动,则删除服务 删除nginx文件 如果使用yum安装的则使用命令删除依赖 基础命令 重启失败 ...

  7. CentOS7 安装LNMP(Linux+Nginx+MySQL+PHP)

    安装make: yum -y install gcc automake autoconf libtool make 安装g++: yum install gcc gcc-c++ 1.选定源码目录 可以 ...

  8. 01_Nginx安装,nginx下部署项目,nginx.conf配置文件修改,相关文件配置

     1.下载Nginx,进入Nginx下载地址:http://nginx.org/ 点击nginx-1.8.0,进入:http://nginx.org/en/download.html,下载文件: ...

  9. Nginx安装手册(摘自入云龙老师教案,亲测可用)

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. Nginx安装手册 一. nginx安装环境 nginx是C语言开发,建议在linux上运行,本教程 ...

最新文章

  1. 从bitmap到布隆过滤器,再到高并发缓存设计策略
  2. 互联网天生本质与产业大局的开始
  3. android cts测试二
  4. Python 从零学起(纯基础) 笔记 (二)
  5. linux安装jdk8_Skywalking系列博客1-安装单机版 Skywalking
  6. 数据结构(严蔚敏)之四——链栈之c语言实现
  7. C语言补漏(1)--- char到int赋值的一个陷阱
  8. 一个在Windows下的ping脚本(使用WMI 的Win32_PingStatus 实现)
  9. 多客服功能终于也向所有微信认证的订阅号开放了
  10. VHD工具-VHDTOOL
  11. 字典使用与内部实现原理
  12. vue3没了$children,如何获取子组件???
  13. linux用openssl制作自签名数字证书
  14. java实现的身份证照片脸部识别(头像截图) 以及OCR字体识别
  15. 【Docker】 for Mac 配置镜像加速器,加快镜像下载速度
  16. 计算机固态硬盘装系统,固态硬盘装系统,小编教你固态硬盘如何装系统
  17. Image Tampering Detection via Semantic Segmentation Network
  18. C++如何优雅地释放资源
  19. CCF TALKs 报名 | 今天,技术如何推动社会进步
  20. 讯飞语音包实现Android语音合成

热门文章

  1. msdn安装后怎么用_Win10不好用?安装官方版精简Win10后,运行比win7更快更流畅
  2. python提供了名称为什么的构造方法_python面向对象编程(1)——基本概念,术语,self,构造器...
  3. VS2010 asp.net web site项目使用log4net
  4. js设计模式之观察者模式和发布/订阅模式
  5. 对象池common-pool2源码分析之对象状态
  6. RobotLegs框架解析
  7. CentOS 6.0 + Zabbix 1.8.5 服务器端安装
  8. 千万别从网页复制粘贴命令
  9. 微软 Exchange Autodiscover 协议存bug,数十万域凭据可遭泄露
  10. 微软发现已遭在野利用的 SolarWinds 新0day