1.GitLab 安装使用

1. 安装并配置必要的依赖关系
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld


2.如想使用Postfix来发送邮件,在安装期间请选择’Internet Site’. 您也可以用sendmai或者 配置SMTP服务 并 使用SMTP发送邮件.
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix


3.添加GitLab仓库,并安装到服务器上(可能安装比较慢,使用国内镜像)
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo yum install -y gitlab-ce


4.启动GitLab
sudo gitlab-ctl reconfigure


5.日常管理
gitlab-ctl start|stop|status|restart
gitlab-ctl status

 

6.配置 gitlab URL

 

7.设置密码

 

8.登录,默认 root

 

安装向导
https://www.gitlab.com.cn/installation/#centos-7

清华大学开源软件镜像站
https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/   

官方仓库
https://packages.gitlab.com/gitlab/gitlab-ce

教程:

https://blog.xiodi.cn/category/devops/gitlab/

 

https://blog.xiodi.cn/2018/07/02/429/

http://www.21yunwei.com/archives/4351

https://yq.aliyun.com/articles/74395#

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值