centos7 安裝gitlab之後無法重新啟動nginx,也無法停止
高洛峰
高洛峰 2017-04-25 09:03:47
0
2
980

在 linode centos7 上安裝gitlab-ce,安裝之後預設的nginx被停止。
現在無法關掉gitlab自帶的nginx,使用kill進程也是一樣。

[root@linode nginx]# ps aux | grep nginx
root      4223  0.0  0.0   4188   792 ?        Ss   21:53   0:00 runsv nginx
root      4224  0.0  0.0   4332   644 ?        S    21:53   0:00 svlogd -tt /var/log/gitlab/nginx
root      4527  0.0  0.2  26888  4352 ?        Ss   21:57   0:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
gitlab-+  4528  0.0  0.3  31140  7612 ?        S    21:57   0:00 nginx: worker process
root      4918  0.0  0.1 112668  2272 pts/1    S+   22:02   0:00 grep --color=auto nginx
[root@linode nginx]# 
[root@linode nginx]# systemctl status nginx
nginx.service - nginx - high performance web server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since 二 2015-11-10 21:53:18 CST; 11min ago
     Docs: http://nginx.org/en/docs/
  Process: 4246 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
  Process: 4243 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)

11月 10 21:53:15 linode nginx[4243]: nginx: configuration file /etc/nginx/nginx.conf test is successful
11月 10 21:53:15 linode nginx[4246]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
11月 10 21:53:16 linode nginx[4246]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
11月 10 21:53:16 linode nginx[4246]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
11月 10 21:53:17 linode nginx[4246]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
11月 10 21:53:17 linode nginx[4246]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
11月 10 21:53:18 linode nginx[4246]: nginx: [emerg] still could not bind()
11月 10 21:53:18 linode systemd[1]: nginx.service: control process exited, code=exited status=1
11月 10 21:53:18 linode systemd[1]: Failed to start nginx - high performance web server.
11月 10 21:53:18 linode systemd[1]: Unit nginx.service entered failed state.
[root@linode nginx]# 
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

全部回覆(2)
过去多啦不再A梦

gitlab-ctl 守護程式啟動的 nginx.
要使用gitlab-ctl restart nginx.

为情所困

把所有佔用80埠的進程全部kill 掉

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板