centos7上安装指定版本gitlab
  4koL3J55wyKx 2023年11月13日 12 0

  当我们在做gitlab服务器迁移的时候需要两台服务器中的gitlab相同,如果不同则不让回复git备份。这样我们就要安装指定版本的gitlab。

 1. 安装依赖软件

yum -y install policycoreutils openssh-server openssh-clients postfix

2.设置postfix开机自启,并启动,postfix支持gitlab发信功能

systemctl enable postfix && systemctl start postfix

3.下载gitlab安装包,然后安装

centos 6系统的下载地址:

​  https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6​

​  https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el6​​centos 7系统的下载地址:

​  https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7​

​  https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el7​

4.下载rpm包并安装:

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el7/gitlab-ee-10.2.1-ee.0.el7.x86_64.rpm

5.安装

rpm -i gitlab-ee-10.2.1-ee.0.el7.x86_64.rpm

6.修改gitlab配置文件指定服务器ip和自定义端口

vi /etc/gitlab/gitlab.rb

  按照如下修改

external_url 'http://192.168.2.36:888'

  ps:注意这里设置的端口不能被占用,默认是8080端口,如果8080已经使用,请自定义其它端口,并在防火墙设置开放相对应得端口

7.重置并启动GitLab

gitlab-ctl reconfigure
gitlab-ctl restart

8.访问 GitLab页面

访问刚才输入的external_url设置root密码

 

注:如果按照上述方法无法安装,可以按照如下链接安装第一步,如果还是不行可以先安装最新然后卸载后重新安装

​   https://about.gitlab.com/installation/#centos-7​

  

centos7上安装指定版本gitlab_服务器

 

 



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月13日 0

暂无评论

推荐阅读
  9E2BTpjt8nym   2023年12月06日   17   0   0 WindowsgitCentOS
4koL3J55wyKx