Gitlab 10.1.4 (汉化版) for CentOS 7.4安装
来源:互联网 发布:软件竣工总结报告 编辑:程序博客网 时间:2024/05/21 04:22
源代码是一个软件公司最重要的资产。源代码的管理经历了中心化的cvs, svn到git的过程。
原先git server采用的是gitolite (https://github.com/sitaramc/gitolite) ,现在已迁移到gitlab。
部署环境
CentOS 7.4 64位
开始安装Gitlab v10.1.4
yum install -y curl policycoreutils-python openssh-server openssh-clients
如果服务器已经安装并运行OpenSSH,那么不用执行以下命令
systemctl enable sshd
systemctl start sshd
如果服务器已经关闭防火墙或者添加相关规则,那么不用执行以下命令
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
安装开源邮件服务器postfix
yum install postfixsystemctl enable postfixsystemctl start postfix
向本机添加gitlab的仓库
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash
EXTERNAL_URL="http://gitlab.cssweb.com" yum install -y gitlab-ce
此处把EXTERNAL_URL设成ip地址或域名,如果没有DNS服务器,记得在自己的电脑中找到hosts文件并添加相关映射(此处不展开了)。
如果安装过程中没有配置EXTERNAL_URL, 可以在上述命令执行后,编辑/etc/gitlab/gitlab.rb修改配置信息。
配置gitlab
gitlab-ctl reconfigure
查看gitlab的版本
rpm -qa | grep gitlab
或者head -1 /opt/gitlab/version-manifest.txt
Gitlab的汉化
停止gitlab
gitlab-ctl stop
下载gitlab版本对应的汉化包
git clone https://gitlab.com/xhang/gitlab.git -b v10.1.4-zh
cd gitlab
导出patch用的diff文件
git diff v10.1.4 v10.1.4-zh > v10.1.4-zh.diff
yum install patch
执行以下命令前,可以对目录/opt/gitlab/embedded/service/gitlab-rails做一下备份
打补丁
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < v10.1.4-zh.diff
重新配置
gitlab-ctl reconfigure
启动gitlab
gitlab-ctl restart
访问gitlab
首次会要求设置root用户的密码。
修改密码后,就可以登录系统。
参考资料
https://about.gitlab.com/installation/#centos-7?version=ce
https://gitlab.com/xhang/gitlab
https://github.com/marbleqi/gitlab-ce-zh
阅读全文
0 0
- Gitlab 10.1.4 (汉化版) for CentOS 7.4安装
- GitLab 社区版安装与汉化方法
- CentOS安装gitLab社区版
- gitlab的安装以及汉化
- Centos安装gitlab安装
- Gitlab CE 8.1.3 安装手册汉化版
- CentOS 6安装Gitlab
- CentOS下一键安装GitLab
- CentOS上安装gitlab
- CentOS上安装GitLab
- centOS 7安装 gitLab
- Centos 安装gitlab
- centos下安装gitlab
- CentOS安装GitLab
- CentOS 7 安装 Gitlab
- CentOS安装GitLab
- Centos下安装GitLab
- Centos 7 安装 GitLab
- Mac OSX GDB调试
- CentOS7 关闭防火墙
- 2017互联网寒冬程序员求职随感
- c#快递单打印精灵
- 扔掉家里不必要的东西,为新物品腾出空间
- Gitlab 10.1.4 (汉化版) for CentOS 7.4安装
- 如何求旋转矩阵
- Redis故障案例(一)-特定key批量丢失
- Unreal教学(6)——玩家输入和Pawn(Player Input and Pawns)
- maven 打包时mapper.xml打不进去问题
- 沃尔沃把自动驾驶卡车从瑞典带到798转了个圈【附视频】
- STM32,RTC周期性唤醒(wakeup)中断
- web语义化
- 怎么安装苹果系统mac os x虚拟机