CentOS 7 搭建 GitLab 最新版

[list]
[[color=blue]废话就不多说了。来点简单粗暴的,直接上步骤[/color]]
[/list]

[size=x-large][b][u]1.安装并配置必要的依赖关系[/u][/b][/size]

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
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix


[size=x-large][b][u]2.添加GitLab软件包库并安装软件包[/u][/b][/size]

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://需要访问的IP" yum install -y gitlab-ee

如果执行完成后,出现 [color=red]It looks like…[/color] ,恭喜你,你的GitLab已然成功安装了!

[size=x-large][b][u]3.配置 GitLab [/u][/b][/size]

sudo mkdir -p /etc/gitlab
sudo touch /etc/gitlab/gitlab.rb
sudo chmod 600 /etc/gitlab/gitlab.rb
sudo gedit /etc/gitlab/gitlab.rb


[size=x-large][b][u]4.对GitLab进行重配置 [/u][/b][/size]
sudo gitlab-ctl reconfigure


[size=x-large][b][u]5.对GitLab进行重新启动 [/u][/b][/size]
sudo gitlab-ctl start


[size=x-large][b][u]6.查看启动状态 [/u][/b][/size]

sudo gitlab-ctl status


[img]http://dl2.iteye.com/upload/attachment/0127/9663/0f8a3b55-5117-3ed8-af80-f50ce32cd2bc.png[/img]

[color=blue]OK。至此,安装就结束了。本人之前有看过网上的一些形形色色的GitLav安装,可以用一句来概括。《中华小当家》张大人对绍安的评价:[/color]
[color=darkred]
太讽刺了绍安,你离开你师傅绕了一大圈,最后达到的境界竟是你不想学的你师父的料理[/color]
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值