Ubuntu18.04安装GitLab

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" [email protected]

(3)修改gitlab_rails['gitlab_email_from'] = '[email protected]'

7.加载配置

sudo gitlab-ctl reconfigure

8.重启

sudo  gitlab-ctl restart

9.查看状态

sudo  gitlab-ctl status

你可能感兴趣的:(Ubuntu18.04安装GitLab)