2014-12-05 63 views
1

我想让gitlab在8080端口上运行,因为我有在端口80上运行的Apache,并且想要为gitlab设置代理。Gitlab-omnibus未在8080上运行

但安装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我i co没有找到解决方案来解决我的问题。

回答

1

我的问题的解决方案是,我没有安装git。 这个我,因为我遵循https://about.gitlab.com/downloads/ 使用dfebian 7的说明,因为那是我的操作系统。它从来没有说过,我必须在安装gitlab之前在系统上安装git。 (这是我的错假设gitlab将安装此对我来说,这是一个容易解决)

+0

git [已安装](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/config/software/git.rb)与包,我不'我认为这是原因。 – axil 2014-12-05 21:18:57

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应该有所帮助。

+0

感谢您的答复,但在gitlab.yml端口已经改为端口:8080 – 2014-12-05 10:18:03

+0

如果端口已设置为'8080'在'gitlab.yml'运行'gitlab-CTL重新配置'为了应用此参数 – PierreF 2014-12-05 11:16:00