首页 > 其他 > 详细

gitlab 安装部署

时间:2019-03-21 15:42:58      阅读:161      评论:0      收藏:0      [点我收藏+]
1.安装相关依赖
yum install -y curl openssh-server openssh-clients postfix cronie policycoreutils-python

2.启动postfix,并设置位开机启动
systemctl restart postfix
systemctl enable postfix

3.防火墙设置
#此命令需在防火墙开启后使用
firewall-cmd --add-service=http --permanent
firewall-cmd –reload

4.关闭防火墙
systemctl stop firewalld
setenforce 0

5.安装gitlab
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.6.7-ce.0.el7.x86_64.rpm

6.安装rpm包
rpm -ivh gitlab-ce-8.6.7-ce.0.el7.x86_64.rpm

7.修改配置文件gitlab.rb
Vim /etc/gitlab/gitlab.rb
查找到
external_url 这个属性,将其改为ip+地址(external_url ‘http://localhost‘)

8.加载配置文件并启动
gitlab-ctl reconfigure
gitlab-ctl restart

技术分享图片
全部成功即可


技术分享图片


9.首次登陆需要自己设置密码
默认账号为 : root
设置密码 :12345678

技术分享图片


注:gitlab在服务器中的默认代码存放的位置是

/var/opt/gitlab/git-data/repositories

访问IP页面测试成功:
技术分享图片

gitlab 安装部署

原文:https://blog.51cto.com/14199566/2366381

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!