回答
收藏
分享
举报
centos7 安装gitlab之后无法重启nginx,也无法停止
提问于2021-04-06 09:52

浏览 770

在 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]# 
已修改于2023-03-15 02:14



写下您的回答
发表回答
全部回答(1)

按点赞数排序

按时间排序

端口冲突

赞同

0

回复举报

回答于2022-10-31 14:01



回复ld7941
回复
提问者
阿尔巴
这家伙很懒还未留下介绍~
12
文章
10
问答
11
粉丝
相关问答

看下error.log日志,先确认下是哪个URL引发了重定向。

点赞 0
浏览 2.1k

这个说的应该是会话保持的问题吧,保证一个客户端始终和一个后端服务器通信,有第三方模块可以在NGINX里实现会话保持,好像也有lua库。

点赞 0
浏览 779

一般http1.1 用max-age, http1.0 用expires,还和浏览器的设置有关,另外浏览器,对expires,max-age 的遵守也不一致。

点赞 0
浏览 1.1k