Gitlab服务器搭建过程
官网:https://about.gitlab.com
安装说明:https://about.gitlab.com/installation/
下载工具包:https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
将安装包上传到linux
进入到安装包所在目录,执行以下命令
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
备注:若报-bash: lokkit: 未找到命令,则执行 yum install lokkit
如报ERROR: FirewallD is active, please use firewall-cmd.,则执行systemctl stop firewalld
gitlab服务操作
初始化配置gitlab
gitlab-ctl reconfigure
启动gitlab服务
gitlab-ctl start
停止gitlab服务
gitlab-ctl stop