gitlab quickly install

时间:2018-07-11 13:11:49   收藏:0   阅读:116

一、安装gitlab依赖环境  

 yum -y install vim wget epel-release
  yum install curl policycoreutils openssh-server openssh-clients -y
  systemctl enable sshd
  systemctl start shhd
  systemctl start sshd
  yum install postfix -y
  systemctl enable postfix
  systemctl start postfix
  firewall-cmd --permanent --add-service=http
  systemctl reload firewalld

二、下载安装gitlab

  wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.1-ce.0.el7.x86_64.rpm
  chmod 755 gitlab-ce-9.5.1-ce.0.el7.x86_64.rpm 
  rpm -ivh gitlab-ce-9.5.1-ce.0.el7.x86_64.rpm 

三、启动gitlab

  gitlab-ctl reconfigure
  vim /etc/gitlab/gitlab.rb 
        external_url ‘http://本机ip地址‘
  gitlab-ctl reconfigure

原文:https://www.cnblogs.com/ipyanthony/p/9293661.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!