搭建私有工作环境之 centos7下gitlab的搭建

矫情吗;* 2022-03-24 16:05 327阅读 0赞

centos7下gitlab的搭建

1.开放防火墙端口8090

2.配置yum源

cd /etc/yum.repos.d找到base.repo,最末端添加如下:

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

3.下载并安装

  1. yum install -y gitlab-ce

4.安装postfix

  1. yum install postfix
  2. systemctl start postfix.service
  3. chkconfig postfix on

5.修改默认端口号

vim /etc/gitlab/gitlab.rb

  1. #放开注释,并修改unicorn的默认端口号
  2. unicorn['port'] = 8091
  3. #放开注释,并修改nginx的默认端口号
  4. external_url 'http://localhost:8090'

6.保存修改后的配置并启动

gitlab-ctl reconfigure

gitlab-ctl start

7.注意事项

  1. 常用日志:

/var/log/gitlab/unicorn/unicorn_stderr.log

/var/log/gitlab/nginx/error.log

发表评论

表情:
评论列表 (有 0 条评论,327人围观)

还没有评论,来说两句吧...

相关阅读