简体   繁体   English

Apache和GitLab在同一台服务器上

[英]Apache and GitLab on same server

I have a problem, that nginx is saying that :80 port is already in use by gitlab. 我有一个问题,nginx说:80端口已经被gitlab使用了。

By editing /etc/gitlab/gitlab.rb I've changed 通过编辑/etc/gitlab/gitlab.rb我已经改变了

external_url 'http://git.host.com:81'

And it's not working. 它不起作用。

Tried to change /opt/gitlab/embedded/conf/nginx.conf port to 81 - same problem. 试图将/opt/gitlab/embedded/conf/nginx.conf端口更改为81 - 同样的问题。

After each action I executed 在我执行的每个动作之后

gitlab-ctl reconfigure && gitlab-ctl restart

What I`m doing wrong? 我做错了什么? How to change gitlab port to another one? 如何将gitlab端口更改为另一个?

First, 第一,

sudo -e /etc/gitlab/gitlab.rb

Then, change external_url from example.com to example.com:81 . 然后,将external_urlexample.com更改为example.com:81

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

After few hours of brainstorming I did found a solution to my problem: 经过几个小时的头脑风暴,我确实找到了解决问题的方法:

I just needed to open 81 port. 我只需要打开81端口。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM