Gitlab的中文汉化
1. Gitlab的汉化
1.1 下载合适的汉化软件包
在中文社区找到合适你的汉化包: https://gitlab.com/xhang/gitlab
[root@gitlab-haitang /]# unzip gitlab-v12.3.0-zh.zip
1.2 停止gitlab服务
[root@gitlab-haitang /]# gitlab-ctl stop
ok: down: gitaly: 0s, normally up
ok: down: gitlab-workhorse: 0s, normally up
ok: down: logrotate: 1s, normally up
ok: down: nginx: 0s, normally up
ok: down: postgresql: 0s, normally up
ok: down: redis: 0s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 1s, normally up
1.3 拷贝文件至指定目录
下面这个两个报错不要紧
[root@gitlab-haitang /]# \cp -r gitlab-v12.3.0-zh/* /opt/gitlab/embedded/service/git
gitaly-ruby/ gitlab-rails/ gitlab-shell/
[root@gitlab-haitang /]# \cp -r gitlab-v12.3.0-zh/* /opt/gitlab/embedded/service/gitlab-rails/
cp: 无法以目录"gitlab-v12.3.0-zh/log" 来覆盖非目录"/opt/gitlab/embedded/service/gitlab-rails/log"
cp: 无法以目录"gitlab-v12.3.0-zh/tmp" 来覆盖非目录"/opt/gitlab/embedded/service/gitlab-rails/tmp"
1.4 重新加载配置
[root@gitlab-haitang /]# !90
gitlab-ctl reconfigure
1.5 启动gitlab及各组件
[root@gitlab-haitang /]# gitlab-ctl start
ok: run: gitaly: (pid 18165) 0s
ok: run: gitlab-workhorse: (pid 18203) 1s
ok: run: logrotate: (pid 18213) 0s
ok: run: nginx: (pid 18219) 1s
ok: run: postgresql: (pid 18231) 0s
ok: run: redis: (pid 18316) 1s
ok: run: sidekiq: (pid 18320) 0s
ok: run: unicorn: (pid 18326) 0s
1.6 检查各端口是否启动
[root@gitlab-haitang /]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1435/master
tcp 0 0 0.0.0.0:8060 0.0.0.0:* LISTEN 18219/nginx: master
tcp 0 0 127.0.0.1:9229 0.0.0.0:* LISTEN 18203/gitlab-workho
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 18341/unicorn maste
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 18219/nginx: master
tcp 0 0 127.0.0.1:8082 0.0.0.0:* LISTEN 18320/sidekiq 5.2.7
tcp 0 0 127.0.0.1:9236 0.0.0.0:* LISTEN 18172/gitaly
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1067/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1435/master
tcp6 0 0 :::22 :::* LISTEN 1067/sshd
1.7 登陆查看是否汉化
我们一直奔跑在进步的旅途