记一次安装gitlab过程

  • 安装脚本
[root@localhost ~]# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
[root@localhost ~]# vim /etc/yum.repos.d/gitlab-ce.repo

[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1

[root@localhost ~]# sudo yum makecache
[root@localhost ~]# sudo yum install gitlab-ce
  • 访问地址及端口号更改
[root@localhost ~]# vim  /etc/gitlab/gitlab.rb

external_url 'http://192.168.88.58:8288/'

[root@localhost ~]# gitlab-ctl reconfigure
[root@localhost ~]# gitlab-ctl restart

参考:
https://about.gitlab.com/install/#centos-7
https://www.cnblogs.com/ddz-linux/p/10698907.html

你可能感兴趣的:(架构)