centos7.3安装gitlab

依赖环境
yum -y install curl policycoreutils policycoreutils-python openssh-server openssh-clients postfix git

启动postfix
systemctl start postfix
systemctl enable postfix

在线安装gitlab
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

yum install -y gitlab-ce

在线安装或者gitlab

curl -sS http://packages.gitlab.com.cn/install/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce


离线或者gitlab

wget https://packages.gitlab.com/gitlab/gitlab-ce/el/7/x86_64/gitlab-ce-9.2.2-ce.0.el7.x86_64.rpm


配置gitlab
vi /etc/gitlab/gitlab.rb
14 external_url 'http://ip:端口(提示默认是80端口)

配置gitlab
gitlab-ctl reconfigure
gitlab-ctl start
gitlab-ctl status

查看gitlab
grep "^external_url" /etc/gitlab/gitlab.rb
external_url 'http://ip:端口

首次访问GitLab,系统会让你重新设置管理员的密码,设置成功后会返回登录界面.
默认的管理员账号是root,如果你想更改默认管理员账号,请输入上面设置的新密码登录系统后修改帐号名.
http://IP:端口   (root/自己的密码)
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值