This thing is so troublesome. When I was doing this, I was tortured to death. Its nginx would often grab the 80 monitoring of the original nginx of the system.
Although the official claim is that just disabling nginx in the configuration file will do the trick, errors often occur when I operate it. So:
My solution:
Edit the gitlab configuration file: /etc/gitlab/gitlab.rb Add the following configuration:
# disable gitlab's nginx
nginx['enable'] = false
# For GitLab CI, use the following:
ci_nginx['enable'] = false
Replace /opt/gitlab/embedded/conf/nginx.conf 里 gitlab 默认的监听 80 改成 88, and then add the following in the main nginx configuration:
This thing is so troublesome. When I was doing this, I was tortured to death. Its nginx would often grab the 80 monitoring of the original nginx of the system.
Although the official claim is that just disabling nginx in the configuration file will do the trick, errors often occur when I operate it. So:
My solution:
Edit the gitlab configuration file:
/etc/gitlab/gitlab.rb
Add the following configuration:Replace
/opt/gitlab/embedded/conf/nginx.conf
里 gitlab 默认的监听80
改成88
, and then add the following in the main nginx configuration:Reload gitlab configuration and reload main nginx.