yum install libatomic
dnf install policycoreutils openssh-server postfix
--centos8
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
--centos9
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/9/gitlab-ce-17.4.5-ce.0.el9.x86_64.rpm/download.rpm
dnf install gitlab-ce-17.4.5-ce.0.el9.x86_64.rpm
#sudo rpm -ivh gitlab-ce-17.4.5-ce.0.el9.x86_64.rpm # 将xxx替换为具体的版本号
配置位置
/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
gitlab升级工具
未经允许不得转载:lxfamn » centos8 openeuler 安装 gitlab8 el8