GitLab安装及使用
官方文档 gitlab
注意 官方文档中提供的安装指令是企业版
如果是自己本地使用 建议安装社区版
安装之前需要先下载rpm包
gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
下载完成后需要上传到opt目录下
然后执行下边安装指令即可
安装指令调整后如下
sudo rpm -ivh /opt/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
sudo yum install -y curl policycoreutils-python openssh-server cronie
sudo lokkit -s http -s ssh
sudo yum install postfix
sudo service postfix start
sudo chkconfig postfix on
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install git
也可以将上边的安装指令放到shell脚本中执行
例如 vim installgitlab.sh
黏贴安