Gitlab-omnibus没有在8080上运行

时间:2014-12-05 10:01:58

标签: apache gitlab

我希望gitlab在端口8080上运行,因为我在端口80上运行apache并想为gitlab设置代理。

但是在使用命令安装gitlab之后:

wget https://downloads-packages.s3.amazonaws.com/debian-7.6/gitlab_7.5.2-omnibus.5.2.1.ci-1_amd64.deb
sudo apt-get install openssh-server
sudo apt-get install postfix
sudo dpkg -i gitlab_7.5.2-omnibus.5.2.1.ci-1_amd64.deb

我更改了/etc/gitlab/gitlab.rb以包含:

external_url "http://gitlab.mydomain.com:8080"

并执行命令:

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

但是我仍然无法达到“http://gitlab.mydomain.com:8080”的gitlab 我无法找到解决问题的解决方案。

3 个答案:

答案 0 :(得分:1)

您可能需要查看gitlab.yml config file

## GitLab settings
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: localhost
port: 80 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details

将端口更改为8080应该会有所帮助。

答案 1 :(得分:1)

我的问题的解决方案是我没有安装git。 我是因为我按照https://about.gitlab.com/downloads/上的说明进行操作 使用dfebian 7,因为那是我的操作系统。从来没有说过在安装gitlab之前我必须在我的系统上安装git。  (我认为gitlab会为我安装这个并且这很容易解决,这是错误的)

答案 2 :(得分:0)

最近为gitlab.rb中的所有可能设置引入了template。你要添加的是

nginx['redirect_http_to_https_port'] = 8080

然后运行重新配置。

请参阅https://gitlab.com/gitlab-org/omnibus-gitlab/blob/9e97671d8dee3ea6a7bbb99347ad279b65689f28/files/gitlab-config-template/gitlab.rb.template#L316

相关问题