一、安装CentOS7
















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 gitlab-ce



reboot重启
gitlab 服务操作
初始化配置gitlab
gitlab-ctl reconfigure(这一步执行时间有点长)
启动gitlab 服务
gitlab-ctl start
停止gitlab 服务
gitlab-ctl stop


浏览器访问
浏览器输入192.168.233.155
初次登录时需要为gitlab 的root 用户设置密码。

密码:liqingchao


网友评论