安装
- 我
gitlab
通过debian 7
(版本7.8.1-omnibus-1_amd64.deb
)上的omnibus软件包安装了该软件包; - 如使用非捆绑式Web服务器中所述更改设置
- 运行reconfigure命令:(
sudo gitlab-ctl reconfigure
完成,没有错误)。
Nginx的
nginx
除了软件包可能使用以下/etc/gitlab/gitlab.rb
文件创建的内容外,我没有为此gitlab配置:
external_url 'http://git.mydomain.fr'
web_server['external_users'] = ['www-data']
nginx['enable'] = false
ci_nginx['enable'] = false
日志
/var/log/nginx/gitlab_error.log
2015/02/28 14:29:16 [alert] 4137#0: *14738 768 worker_connections are not enough while connecting to upstream, client: x.x.128.194, server: git.mydomain.fr, request: "GET / HTTP/1.0", upstream
: "http://x.x.128.194:80/", host: "git.mydomain.fr"
/var/log/nginx/gitlab_access.log
在acces.log中,我收到了数百个请求/
。
x.x.128.194 - - [28/Feb/2015:14:29:16 +0100] "GET / HTTP/1.0" 500 186 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0"
x.x.128.194 - - [28/Feb/2015:14:29:16 +0100] "GET / HTTP/1.0" 500 186 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0"
x.x.128.194 - - [28/Feb/2015:14:29:16 +0100] "GET / HTTP/1.0" 500 186 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0"x.x.128.194 - - [28/Feb/2015:14:29:16 +0100] "GET / HTTP/1.0" 500 186 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0"
x.x.128.194 - - [28/Feb/2015:14:29:16 +0100] "GET / HTTP/1.0" 500 186 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0"
题
尝试使用本地links2
或外部联系服务时遇到错误502 Bad Gateway
。
- 我需要创建一个自定义nginx的配置吗?