使用systemctl命令启动nginx竟然报错了?什么原因?


本文摘自PHP中文网,作者V,侵删。

问题:

使用systemctl start nginx命令启动nginx发现报错了,报错内容如下:

推荐教程:nginx教程

1

Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.[object Object]

问题分析:

nginx -t 检查没有问题

systemctl status nginx 查看nginx状态,显示报错为 80端口被占用

1

Jul 13 16:18:18 web01 nginx[2407]:nginx:[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

原因分析:

安装时 启动使用了 nginx命令启动,修改配置文件之后又使用 systemctl restart nginx命令启动

阅读剩余部分

相关阅读 >>

如何仅在nginx web服务器中启用tls1.2

nginx使用geoip做区域限制

介绍beego、nginx性能测试实例

nginx常用命令介绍

怎样配置nginx禁止目录执行php文件

利用nginx实现301跳转到https的根域名

nginx部署~dotnetcore+mvc网站502

403nginx是什么

linux中nginx反向代理下的tomcat集群的详解

linux如何重启nginx?

更多相关阅读请进入《systemctl》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...