centos7 部署gitlab并汉化

首先准备工作:

下载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

关闭防火墙

service iptables stop

chkconfig iptables off

获取GitLab汉化包

安装git:yum install -y git

安装gitlab依赖:yum -y install policycoreutils openssh-server openssh-clients postfix cronie policycoreutils-python

启动postfix,并设置为开机启动

service postfix start

chkconfig postfix on

安装rpm包

cd /usr/local

rpm -ivh gitlab-ce-10.0.2-ce.0.el6.x86_64.rpm

修改配置文件gitlab.rb

vim /etc/gitlab/gitlab.rb

external_url 'http://ip:8081'

gitlab-ctl reconfigure

gitlab-ctl restart

后续待补充...

yum install -y vim
原文地址:https://www.cnblogs.com/chaihy/p/13570911.html