Ubuntu下Gitlab的搭建

weixin_33912445發表於2017-11-04

安裝openssh和postfix:

sudo apt-get install curl openssh-server ca-certificates postfix

配置Gitlab

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

安裝gitlab

sudo apt-get install gitlab-ce

修改配置然後重新啟動

配置域名或IP: sudo vim /etc/gitlab/gitlab.rb
配置服務:sudo gitlab-ctl reconfigure

gitlab漢化

找到了10.1.1的漢化包:

https://gitlab.com/xhang/gitlab
相關的參考資料:
http://www.cnblogs.com/straycats/p/7637373.html

1.首先新建一個資料夾,克隆安裝包:

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

2.然後差分並生成diff,兩個diff的結果就是需要安裝的漢化包:

sudo git diff origin/10-1-stable..10-1-stable-zh > /tmp/10.1.diff

3.關閉gitlab服務:

gitlabsudo gitlab-ctl stop

4.進入目錄:

cd /opt/gitlab/embedded/service/gitlab-rails

5.安裝diff包:

git apply /tmp/10.1.diff

6.啟動

sudo gitlab-ctl start

相關文章