1.sudo apt update
2.sudo apt curl
3.安装命令
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce=10.0.0-ce.0
4.修改IP、PORT
sudo vi /etc/gitlab/gitlab.rb
external_url 'https://192.168.3.9'
unicorn['port'] = 8081
5.安装postfix邮件服务器
sudo apt install postfix
6.测试邮件服务器
(1)sudo apt install mailutils
(2)echo "test text" | mail -s "Test Text" 12345678@qq.com
(3)修改gitlab_rails['gitlab_email_from'] = 'gitlab@example.com'
7.加载配置
sudo gitlab-ctl reconfigure
8.重启
sudo gitlab-ctl restart
9.查看状态
sudo gitlab-ctl status