yum install libatomic
dnf install policycoreutils openssh-server postfix
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-15.4.3-ce.0.el8.x86_64.rpm/download.rpm
配置位置
/etc/gitlab/gitlab.rb
前面的#去掉
external_url 'http://10.0.1.150:8090'
git_data_dirs({
"default" => {
"path" => "/usr/local/gitlab/data"
}
})
配置生效
gitlab-ctl reconfigure
重启动GitLab
gitlab-ctl restart
提示 "ok: run:"表示启动成功
5、常用命令
查看服务状态:gitlab-ctl status
开启服务: gitlab-ctl start
关闭服务:gitlab-ctl stop
关闭gitlab的自动启动 :systemctl disable gitlab-runsvdir.service
开启gitlab的自动启动:
systemctl enable gitlab-runsvdir.service
systemctl start gitlab-runsvdir.service
gitlab-ctl start
转载请注明出处:
未经允许不得转载:lxfamn » centos8 openeuler 安装 gitlab8 el8