• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
牧梦而生
有梦之时直须追,莫道老大空余恨!
博客园    首页    新随笔    联系   管理    订阅  订阅

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

posted @ 2014-11-15 19:01  牧梦而生  阅读(197)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3