Linux-Centos7--搭建Gitlab私有仓库
官方链接
环境初始化
安装一些网络需要的插件
1 | yum install -y curl policycoreutils-python openssh-server perl |
确认ssh服务开启
1 | systemctl enable sshd && systemctl start sshd && systemctl status sshd |
打开http和https访问
1 | firewall-cmd --permanent --add-service=http && firewall-cmd --permanent --add-service=https |
重新读取防火墙规则?应该吧
1 | systemctl reload firewalld |
安装Postfix以发送电子邮件通知(可选)
1 | yum install postfix |
启动Postfix服务
1 | systemctl enable postfix && systemctl start postfix |
下载
1 | curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash |
安装,EXTERNAL_URL=主机IP,比如EXTERNAL_URL=http://192.168.16.1
1 | sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-jh |
查看root密码,浏览器访问登录需要
1 | cat /etc/gitlab/initial_root_password |
浏览器访问
- 账号:root
- 密码:***********************(上面获取的)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 YINLI!
评论
