centos上搭gitlab

1.下载rpm安装包并安装

curl -LJO https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.5.4-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-8.5.4-ce.0.el7.x86_64.rpm

2.安装包自带Nginx 我们停掉 用本机已安装的,gitlab的配置文件在/etc/gitlab/gitlab.rb下,把Nginx设置为false即可,然后再配置自己的Nginx host
Nginx['enable'] = false

3.gitlab配置文件修改访问host地址
external_url = 'http://www.xxx.com'

4.汉化

git clone https://gitlab.com/larryli/gitlab.git

确定当前gitlab版本
sudo cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

下载后进入刚刚checkout的目录 然后做diff 比如版本是8.5

git diff origin/8-5-stable origin/8-5-zh > /tmp/8.5.diff

停止gitlab 合并
sudo gitlab-ctl stop
sudo patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/8.5.diff

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native