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=GitlabCERepository
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 https://about.gitlab.com/installation/#centos-6
GitLab 搭建及配置 http://www.hjqjk.com/2017/GitLab-install-config.html
三十分钟完成 Gitlab 搭建安装指南 (支持 HTTPS 访问) https://blog.csdn.net/littlebrain4solving/article/details/80168493
来源: http://www.bubuko.com/infodetail-2680430.html