安装gitlab

安装gitlab

环境

关闭防火墙以及selinux,起码4核8G 内存至少 3G 不然启动不了

下载环境

gitlab官网:GitLab下载安装_GitLab最新中文基础版下载安装-极狐GitLab

rpm包下载地址: [Yum - Nexus Repository Manager (gitlab.cn)](https://packages.gitlab.com/gitlab/gitlab-ce)

可以直接点击上面的连接进行下载rpm包 – 下面选择对应的版本

image-20231121150419774

 yum install -y curl policycoreutils-python openssh-server perl
 yum install gitlab-jh-16.0.3-jh.0.el7.x86_64.rpm -y # 我选择的是 16.0.3  找不到的话直接找个16版本的就可以

初始化

# 以下两种方法都可以配置访问地址,第一种需要在yum安装前配置
export EXTERNAL_URL='http://192.168.249.156'
# 或
vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.249.156'  自己的 ip 
# 启动加载配置文件
gitlab-ctl reconfigure

状态

gitlab-ctl status
run: gitaly: (pid 4491) 48s; run: log: (pid 4087) 279s
run: gitlab-monitor: (pid 4539) 44s; run: log: (pid 4251) 207s
run: gitlab-workhorse: (pid 4501) 47s; run: log: (pid 4099) 273s
run: logrotate: (pid 4125) 265s; run: log: (pid 4124) 265s
run: nginx: (pid 4112) 271s; run: log: (pid 4111) 271s
run: node-exporter: (pid 4175) 243s; run: log: (pid 4174) 243s
run: postgres-exporter: (pid 4528) 45s; run: log: (pid 4223) 219s
run: postgresql: (pid 3933) 343s; run: log: (pid 3932) 343s
run: prometheus: (pid 4514) 46s; run: log: (pid 4156) 259s
run: redis: (pid 3876) 355s; run: log: (pid 3875) 355s
run: redis-exporter: (pid 4186) 237s; run: log: (pid 4185) 237s
run: sidekiq: (pid 4078) 281s; run: log: (pid 4077) 281s
run: unicorn: (pid 4047) 287s; run: log: (pid 4046) 287s

登陆 Gitlab

用户名: root 密码存放在 /etc/gitlab/initial_root_password 文件中,该文件会在24小时后删除

image-20231121150849683

中文

如图,英文对应的位置 偏好设置 – 其他版本不一样

image-20231121151018653

里面进行设置,就不演示了

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值