下载Git https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/选择需要的版本
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.0.3-ce.0.el7.x86_64.rpm
安装:
rpm -i gitlab-ce-11.0.3-ce.0.el7.x86_64.rpm
如下报错:警告:gitlab-ce-11.0.3-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY
错误:依赖检测失败:
policycoreutils-python 被 gitlab-ce-11.0.3-ce.0.el7.x86_64 需要
[root@izbp191siji73ir3cjd0faz tools]# yum install policycoreutils-python执行: yum install policycoreutils-python
再次安装: rpm -i gitlab-ce-11.0.3-ce.0.el7.x86_64.rpm修改 vim /etc/gitlab/gitlab.rb
external_url -> 服务器http://IP:端口
执行配置
gitlab-ctl reconfigure
启动:gitlab-ctl start 出现如下说明成功
ok: run: alertmanager: (pid 7324) 0s
ok: run: gitaly: (pid 7334) 0s
ok: run: gitlab-monitor: (pid 7355) 1s
ok: run: gitlab-workhorse: (pid 7360) 0s
ok: run: logrotate: (pid 7373) 1s
ok: run: nginx: (pid 7416) 0s
ok: run: node-exporter: (pid 7461) 0s
ok: run: postgres-exporter: (pid 7467) 1s
ok: run: postgresql: (pid 7473) 0s
ok: run: prometheus: (pid 7481) 1s
ok: run: redis: (pid 7492) 0s
ok: run: redis-exporter: (pid 7496) 1s
ok: run: sidekiq: (pid 7502) 0s
ok: run: unicorn: (pid 7517) 0s修改储存位置
sudo vi /etc/gitlab/gitlab.rb
git_data_dirs -> 修改成目标位置
sudo gitlab-ctl reconfigure 配置执行
重新启动
CentOS7 安装部署Gitlab服务器
最新推荐文章于 2025-03-20 10:42:24 发布