欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

gitlab 安装 timeout: down: nginx: 0s, normally up, want up

程序员文章站 2022-07-14 21:40:28
...

安装 gitlab,  版本:gitlab-6.9.0_omnibus-1.el6.x86_64.rpm 同样的环境安装结果却不一样:

在开发服务器上安装成功后,执行启动:

gitlab-ctl start

timeout: down: nginx: 0s, normally up, want up

ok: run: postgresql: (pid 7430) 78s

ok: run: redis: (pid 7432) 78s

ok: run: sidekiq: (pid 7434) 78s

ok: run: unicorn: (pid 7592) 1s

 

nginx,一直启动不成功.

 

后面经过分析与对比,gitlab在安装的时候nginx配置有问题。

查看 gtilab内置nginx配置

vi /var/opt/gitlab/nginx/etc/gitlab-http.conf

server {

  listen *:80;

  server_name  ;  //对比之前装过的配置,默认都为:gitlab.example.com

  xxxxxxxxxxxxxxxxxxxxxxxxxxxx

}

 

后面将server_name 改为 gitlab.example.com 启动OK。

 

gitlab-ctl日志查看(启动错误在日志中有明确提示):

gitlab-ctl tail

==> /var/log/gitlab/nginx/current <==

2015-11-18_04:00:05.98187 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/gitlab/nginx/etc/gitlab-http.conf:29

2015-11-18_04:00:06.99806 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/gitlab/nginx/etc/gitlab-http.conf:29

2015-11-18_04:00:08.01651 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/gitlab/nginx/etc/gitlab-http.conf:29

 

 

 

安装参考:

http://my.oschina.net/secyaher/blog/280394

http://blog.mimvp.com/2014/10/gitlab-build-your-own-private-github/

 

 

 

 

 

相关标签: gitlab