最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

Linux搭建GitLab并漢化

標(biāo)簽:
Linux Git

一、环境准备

1.1 下载wget
# yum install -y vim
# yum install -y wget
# cd /usr/local
# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-10.0.2-ce.0.el6.x86_64.rpm
1.2 关闭防火墙
# service iptables stop
# chkconfig iptables off

二、获取GitLab汉化包(要部署非汉化版,可以跳过这一块内容)

2.1 安装Git
# yum install -y git
2.2 克隆获取汉化版本库
# cd /usr/local
# git clone https://gitlab.com/xhang/gitlab.git

三、部署社区版GitLab

3.1 安装GitLab的依赖项
# yum -y install policycoreutils openssh-server openssh-clients postfix cronie policycoreutils-python
3.2 启动postfix,并设置为开机启动
# service postfix start
# chkconfig postfix on
3.3 安装rpm包
# cd /usr/local
# rpm -ivh gitlab-ce-10.0.2-ce.0.el6.x86_64.rpm
3.4 修改配置文件gitlab.rb
# vim /etc/gitlab/gitlab.rb

将external_url变量的地址修改为gitlab所在centos的ip地址
修改GitLab默认端口

unicorn['port'] = '9092'

webp

因为修改了配置文件,故需要重新加载配置内容。
# gitlab-ctl reconfigure
# gitlab-ctl restart

四、覆盖汉化包

4.1 停止GitLab服务
# gitlab-ctl stop
4.2 比较汉化标签和原标签,导出 patch 用的 diff 文件到/root下
# cd /usr/local/gitlab
# git diff v10.0.2 v10.0.2-zh > ../10.0.2-zh.diff
4.3 将10.0.2-zh.diff作为补丁更新到GitLab中
# cd /usr/local# yum install patch -y
# patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 10.0.2-zh.diff
Tips:重启GitLab
# gitlab-ctl reconfigure
# gitlab-ctl restart



作者:試毅_思伟


點(diǎn)擊查看更多內(nèi)容
TA 點(diǎn)贊

若覺(jué)得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
JAVA開(kāi)發(fā)工程師
手記
粉絲
18
獲贊與收藏
121

關(guān)注作者,訂閱最新文章

閱讀免費(fèi)教程

  • 推薦
  • 評(píng)論
  • 收藏
  • 共同學(xué)習(xí),寫(xiě)下你的評(píng)論
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說(shuō)多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開(kāi)微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消