日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Nginx >内容正文

Nginx

解决办法在安装完Nginx后服务启动失败

發布時間:2024/2/28 Nginx 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 解决办法在安装完Nginx后服务启动失败 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在安裝完Nginx后服務啟動失敗的解決辦法

systemctl start nginx //啟動服務
Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. //提示信息

問題分析

然后我就按照問題提示的命令查看了一下 journalctl -xe
8月 09 00:38:21 localhost.localdomain nginx[26205]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
8月 09 00:38:22 localhost.localdomain nginx[26205]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
8月 09 00:38:22 localhost.localdomain nginx[26205]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
8月 09 00:38:23 localhost.localdomain nginx[26205]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Addre
8月 09 00:38:23 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited stat
8月 09 00:38:23 localhost.localdomain nginx[26205]: nginx: [emerg] still could not bind()
8月 09 00:38:23 localhost.localdomain systemd[1]: Failed to start nginx.
從輸出的提示信息上可以看到”0.0.0.0:80 failed”字樣,大概可能跟端口有關,然后再使用如下命令查看一下端口進程:


通過監聽端口,發現80端口已經被占用了,怪不得Nginx服務起不來

解決辦法

[root@promote nginx-1.12.2]# killall -s QUIT nginx

重啟啟動一下nginx

總結

以上是生活随笔為你收集整理的解决办法在安装完Nginx后服务启动失败的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。