Centos7 Gitlab13.3安装

1、安装依赖包

yum -y install policycoreutils openssh-server openssh-clients postfix

2、rpm下载

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.3.0-ce.1.el7.x86_64.rpm

3、开启postfix

postfix支持gitlab发信功能,设置postfix开机自起

systemctl enable postfix && systemctl start postfix

4、修改访问地址和端口

vim /etc/gitlab/gitlab.rb

external_url http://IP:端口    ##修改访问地址

unicorn['port'] = 8001    ##unicorn worker的工作端口

5、加载配置

gitlab-ctl reconfigure

6、启动

gitlab-ctl start

7、设置开机自启

systemctl enable gitlab-runsvdir.service

8、web登陆

默认用户名:root

9、中文设置

Centos7 Gitlab13.3安装

Centos7 Gitlab13.3安装