在gitlab网站下载gitlab-ce_17.5.1-ce.0_amd64.deb
gitlab/gitlab-ce - Packages · packages.gitlab.com
安装
sudo apt install ca-certificates curl openssh-server postfix
dpkg -i gitlab-ce_17.5.1-ce.0_amd64.deb
修改/etc/gitlab/gitlab.rb中的external_url是要写上IPv6绑定域名+端口号
打开nginx['listen_addresses'] = ['*', '[::]']的注释
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
然后使用域名+端口号访问gitlab
修改root密码
sudo gitlab-rails console
user = User.where(id: 1).first
user.password = 'new password'
user.password_confirmation = 'new password'
user.save!