wdcp升级php5.8到php7.1.12后安装gitlab

1.安装依赖包
sudo yum install -y curl policycoreutils-python openssh-server cronie

2.使用清华大学开源软件镜像源安装 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
3.更新本地YUM缓存
yum makecache
 
4.自动安装最新版本
  yum install gitlab-ce
 
5.修改配置文件/etc/gitlab/gitlab.rb,绑定域名
  vim /etc/gitlab/gitlab.rb
       external_url 'http://gitlab.zouke.com'
 
6.启动GitLab,使得配置生效
  gitlab-ctl reconfigure
 
7.配置访问gitlab域名
  vim /var/opt/gitlab/nginx/conf/gitlab-http.conf
 
 
8.开放8083端口
  iptables -I INPUT -m tcp -p tcp --dport 8083 -j ACCEPT
 
9.重启所有 gitlab 组件
  gitlab-ctl restart

10.访问gitlab
  http://gitlab.zouke.com:8083/

gitlab安装参考博文:

GitLab Installation

GitLab搭建及配置

三十分钟完成 Gitlab 搭建安装指南(支持 HTTPS 访问)

Gitlab环境快速部署(RPM包方式安装)

原文地址:https://www.cnblogs.com/zouke1220/p/9292158.html