centos8 openeuler 安装 gitlab8 el8

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升级工具

https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/?current=15.4.3&target=17.4.5&distro=centos&edition=ce

未经允许不得转载:lxfamn » centos8 openeuler 安装 gitlab8 el8

赞 (0) 打赏

置顶推荐

评论 0

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏