码迷,mamicode.com
首页 > 其他好文 > 详细

GitLab 的安装

时间:2017-06-27 16:23:49      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:执行   centos7   figure   style   nbsp   冲突   star   href   tla   

系统环境:CentOS7 切记:安装GitLab 时会自动安装GitLab自带的Nginx,为了避免冲突,部署环境时先不要安装Nginx。

官网安装及汉化安装

官网安装最新版GitLabhttps://about.gitlab.com/installation/ 选择对应的系统版本

按照官网的教程一步步安装,很简单。

sudo yum install curl policycoreutils openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld

 准备工作做好后开始安装GitLab

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce

 安装完毕后执行注册启动

sudo gitlab-ctl reconfigure

IE输入服务器的IP地址即可登录GitLab。

汉化安装:

如果选择安装GitLab汉化版,那么往往不能安装最新版的。这里以目前最新的GitLab 8.8.5汉化版举例。

下载官方GitLab8.8.5版 地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/选择对应的系统下载相应版本的rpm包。

上传到服务器。按照官方的方法安装

rpm -ivh gitlab-ce-8.8.5-ce.1.el7.x86_64.rpm

安装后同样执行reconfigure启动

sudo gitlab-ctl reconfigure

 

GitLab 的安装

标签:执行   centos7   figure   style   nbsp   冲突   star   href   tla   

原文地址:http://www.cnblogs.com/kaneyang/p/7085547.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!