CentOS搭建GitLab服务器

以下为CentOS7下安装GitLab7.4.3的全部流程

1、切换到root用户
su root
2、下载并安装GitLab
curl -O https://downloads-packages.s3.amazonaws.com/centos-7.0.1406/gitlab-7.4.3_omnibus.5.1.0.ci-1.el7.x86_64.rpm
sudo yum install openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo rpm -i gitlab-7.4.3_omnibus.5.1.0.ci-1.el7.x86_64.rpm

第一条指令从GitLab官网下载安装包速度可能较慢,可以从以下备注地址下载

备选地址: 百度云盘
3、配置GitLab
sudo -e /etc/gitlab/gitlab.rb
v  (修改"externval_url"之后的域名,可以是本机IP或指向本机IP的域名)
esc → shift+: → wq
sudo gitlab-ctl reconfigure
4、配置防火墙
sudo firewall-cmd --permanent --add-service=http # open up the firewall for HTTP and SSH requests
sudo systemctl reload firewalld
5、访问GitLab
直接通过第3步配置的地址或域名访问GitLab。以下为GitLab默认的账户。
用户名:root
密 码:5iveL!fe

转载于:https://www.cnblogs.com/idoit/p/4100055.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值