在Ubuntu部署gitlab

设置仓库

1
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

安装

1
sudo apt-get install gitlab-ce=14.7.5-ce.0

设置

Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting external_url
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=14-7

改gitlab的nginx端口

1
2
sudo vim /var/opt/gitlab/nginx/conf/gitlab-http.conf
sudo gitlab-ctl restart

注意修改端口后重新配置 /etc/gitlab/gitlab.rb。