安装Gitlab第三方依赖
yum install -y curl policycoreutils-python openssh-server
yum install postfix
添加Gitlab官方软件源
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
安装Gitlab-ce
yum install -y gitlab-ce
出现以下信息,表示安装成功
配置Gitlab
修改配置文件vim /etc/gitlab/gitlab.rb
修改external_url 'http://你的服务器地址或者域名'
重启Gitlab应用配置gitlab-ctl restart
访问http://你的服务器地址或者域名 会让你设置root登录密码
Gitlab启动|停止|状态|重启
启动:gitlab-ctl start
停止:gitlab-ctl stop
状态:gitlab-ctl status
重启:gitlab-ctl restart