nginx启动时报错:启动失败

nginx: [error] CreateFile() "C:\web\nginx-1.17.9/logs/nginx.pid" failed (2: The system cannot find the file specified)

执行命令 nginx -t 查询nginx的配置

C:\web\nginx-1.17.9>nginx.exe -t
nginx: the configuration file C:\web\nginx-1.17.9/conf/nginx.conf syntax is ok
nginx: [emerg] bind() to 0.0.0.0:8090 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
nginx: configuration file C:\web\nginx-1.17.9/conf/nginx.conf test failed

问题大概如上

其中问题:  80端口被占用了

10013: An attempt was made to access a socket in a way forbidden by its access permissions

解决办法:

cmd  输入  netstat -aon | findstr :80

输入  tasklist|findstr "15616"

找到任务管理器 -- 详细信息

手动关闭

解决nginx启动失败相关推荐

  1. nginx修改监听端口号8080_解决Nginx启动失败

    一.Nginx下载 http://nginx.org/en/download.html 二.Nginx启动失败原因 1.本人下载的是nginx-1.12.1(稳定版),下载完解压后,进入路径中,sta ...

  2. Unit nginx.service entered failed state(nginx启动失败)

    1.selinux引起nginx启动失败 问题描述:修改了nginx的配置文件,绑定了监听9089端口,重启nginx的时候失败了.发现报错"nginx: [emerg] bind() to ...

  3. Nginx启动失败的几种错误处理

    使用Nginx做Web服务器过程中,碰到过以下几个问题: 1.nginx启动失败 systemctl start nginx.service 启动nginx失败,报错信息如下: Starting ng ...

  4. linux下nginx启动不了,Nginx启动失败的几种错误处理

    nginx启动失败 启动nginx失败,报错信息如下: Starting nginx: nginx: [emerg] bind() to 0.0.0.0:**** failed (13: Permis ...

  5. nginx启动不了linux,nginx启动失败问题集锦

    1.selinux引起nginx启动失败 问题描述: 修改了nginx的配置文件,绑定了监听9089端口,重启nginx的时候失败了.发现报错"nginx: [emerg] bind() t ...

  6. linux下nginx启动不了,详解Nginx启动失败的几种错误处理

    使用Nginx做Web服务器过程中,碰到过以下几个问题: 1.nginx启动失败 启动nginx失败,报错信息如下: Starting nginx: nginx: [emerg] bind() to ...

  7. 解决springboot启动失败问题:Unable to start embedded container;

    解决springboot启动失败问题:Unable to start embedded container; 参考文章: (1)解决springboot启动失败问题:Unable to start e ...

  8. 解决espressif-ide启动失败报错Incompatible JVM问题

    解决espressif-ide启动失败报错Incompatible JVM问题@ESP IDF Eclipse 开发环境 1.安装ESP-IDF Toolchain on Windows 可选用在线安 ...

  9. nginx启动失败(bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket…permissions)

    nginx启动失败,端口被占用 nginx启动失败(bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket ...

最新文章

  1. Aria2打造属于自己的下载神器
  2. 如何提高模型性能?这四大方法值得尝试 | CSDN 博文精选
  3. Java高并发编程基础之AQS
  4. 通过 .gitlab-ci.yml配置任务-官方配置文件翻译
  5. msf与cs互相传动
  6. openSUSE:系统安装(Windows和openSUSE双系统,硬盘安装)
  7. 一个好用的小工具 thefuck
  8. 条件概率的一些结论以及理解
  9. Ubuntu13.04配置优化(一)转贴
  10. c#中接口的使用方法图解_C#中的接口interface的使用
  11. Mysql数据库存储内存调整与优化
  12. MongoDB4.0.2集群搭建
  13. HYSPLIT 教程 有关记录
  14. Go使用gos7实现西门子PLC通讯
  15. Python批量重命名图像
  16. mac 10.13 安装 java7_下载安装或升级 macOS High Sierra 10.13 系统教程
  17. pathon学习日记
  18. epoch ,steps_per_epoch and batchsize解读
  19. 计算机英语教学设计反思,小学五年级英语教学设计与反思
  20. Android淘宝三方登陆

热门文章

  1. jspdf添加宋体_JSPDF支持中文(思源黑体)采坑之旅,JSPDF中文字体乱码解决方案...
  2. 韩顺平 2021零基础学Java 学习笔记(2)(自用)
  3. 基于C51实现数码管的显示
  4. HTML+CSS+JS网页设计期末课程大作业 web前端开发技术 web课程设计 html网页规划与设计
  5. 魔塔之拯救白娘子~我的第一个VB6+DX8做的小游戏源码~1游戏引擎
  6. 软件测试bug日志信息,软件测试bug收集策略 - Mr.南柯 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...
  7. WPS怎么转换成PDF?这样转换准没错
  8. 堆中存什么?栈中存什么?
  9. 6、Flutter Widgets 之 InkWell 和 Ink
  10. WWDC2019:离开手机,苹果靠什么“挽尊”