GitLabhtml
1、安装配置依赖项linux
如想使用Postfix来发送邮件,在安装期间请选择'Internet Site'. 您也能够用sendmai或者 配置SMTP服务 并 使用SMTP发送邮件.git
在 Centos 6 和 7 系统上, 下面的命令将在系统防火墙里面开放HTTP和SSH端口,此处在生产环境中适用,这次部署单独一台虚机,selinux,firewall都是关闭的,仅安装依赖项就行。浏览器
yuminstall curl policycoreutils openssh-server openssh-clients systemctlenable sshd systemctlstart sshd yuminstall postfix systemctlenable postfix systemctlstart postfix firewall-cmd--permanent --add-service=http systemctlreload firewalld
2. 添加GitLab仓库,并安装到服务器上bash
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh| bash yuminstall gitlab-ce
3. 启动GitLab服务器
gitlab-ctlreconfigure
4. 使用浏览器访问GitLabssh
首次访问GitLab,系统会让你从新设置管理员的密码,设置成功后会返回登陆界面.curl
默认的管理员帐号是root,若是你想更改默认管理员帐号,请输入上面设置的新密码登陆系统后修改账号名.ide
五、Omnibus 安装汉化gitlab
5.1 使用 marbleqi 制做的汉化增量补丁包
注:使用该汉化补丁包须要从新配置编译资源文件
gitlab-ctl reconfigure
5.2 手动导出汉化补丁包汉化
请先使用官方包安装或升级完成,确认当前版本。
cat/opt/gitlab/embedded/service/gitlab-rails/VERSION
当前版本为 v9.1.0,并确认汉化版本库是否包含该版本的汉化标签(-zh结尾),也就是是否包含 v9.1.0-zh。
若是版本相同,首先在本地 clone 仓库。
# 克隆汉化版本库,此处用了很久的时间,拉取这个分支,没有更好的办法,能够自行百度一下git慢的解决方式
git clonehttps://gitlab.com/xhang/gitlab.git
# 若是已经克隆过,则进行更新
git fetch
而后比较汉化标签和原标签,导出 patch 用的 diff 文件。
# 导出9.1.0 版本的汉化补丁
进入刚才的目录git的目录
cd gitlab git diff v9.1.0 v9.1.0-zh > ../9.1.0-zh.diff
而后上传 9.1.0-zh.diff 文件到服务器。
# 中止 gitlab
gitlab-ctl stop patch -d /opt/gitlab/embedded/service/gitlab-rails-p1 < ../9.1.0-zh.diff
肯定没有 .rej 文件,重启 GitLab 便可。
gitlab-ctl start
#执行从新配置命令
gitlab-ctl reconfigure
若是汉化中出现问题,请从新安装GitLab(注意备份数据)。
至此汉化完成,效果以下:
欢迎打算使用阿里云服务器的小伙伴,加我私聊!!QQ:3533470970 或直接领取阿里云幸运券:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=b6h928qb&utm_source=b6h928qb