gitlab安装配置学习

系统版本:centos7.2

软件版本:gitlab8.5.1

 

1. 倚赖包安装

yum install curl policycoreutilsopenssh-server openssh-clients

systemctl enable sshd

systemctl start sshd

yum install postfix

systemctl enable postfix

systemctl start postfix

systemctl stop firewalld

systemctl stop firewalld.service

systemctl disable firewalld.service

 

2.下载并安装软件

[root@bogon data]# ls

gitlab gitlab-ce-8.5.1-ce.0.el7.x86_64.rpm

[root@bogon data]#rpm -ivhgitlab-ce-8.5.1-ce.0.el7.x86_64.rpm

 

mkdir -p /data/gitlab

touch /data/gitlab/gitlab.rb

chmod 600 /data/gitlab/gitlab.rb

[root@bogon data]#vi /data/gitlab/gitlab.rb

external_url"http://10.249.100.205"

 

3. 从新配置

gitlab-ctl reconfigure

 

4. 使用浏览器登录并修改密码

Username: root

Password: laolang123

通过浏览器访问:http://10.249.100.205

登录成功,首次登录需修改密码

 

5、服务打开、关闭、重启:

gitlab-ctl start

gitlab-ctl stop

gitlab-ctl restart



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值