openeuler2403安装gitlab17

下载gitlab17安装包:

[root@openeuler24 ~]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el9/gitlab-ce-17.1.1-ce.0.el9.x86_64.rpm

安装gitlab:

[root@openeuler24 ~]# yum localinstall gitlab-ce-17.1.1-ce.0.el9.x86_64.rpm -y
#编辑配置文件
vim /etc/gitlab/gitlab.rb
#external_url修改
external_url ‘http://10.10.10.51’
#存储目录修改,关键字 git_data_dirs
[root@openeuler24 ~]# mkdir -p /data/gilab
#邮箱配置
smtp_address:邮箱服务器地址
smtp_port:邮箱服务器端口
smtp_user_name:邮箱号
smtp_password:授权码(***注意不是密码***)
smtp_domain:邮箱服务器地址

gitlab_email_from:邮箱号

重新加载配置:

[root@openeuler24 ~]# gitlab-ctl reconfigure
/opt/gitlab/embedded/bin/ruby: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory

缺少libcrypt.so.2文件报错解决:

[root@openeuler24 ~]# ln -s /usr/lib64/libcrypt.so.1 /usr/lib64/libcrypt.so.2
[root@openeuler24 ~]# gitlab-ctl reconfigure  #再次执行

安装完成,如下图:

关闭防火墙就可以通过WEB流量打开了:

[root@openeuler24 ~]# systemctl stop firewalld

[root@openeuler24 ~]# cat /etc/gitlab/initial_root_password  #查看root用户密码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值