一、安装gitlab
1.下载地址 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.5-ce.0.el7.x86_64.rpm
2.通过FTP工具将包上传至服务器
或者使用wget下载
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.5-ce.0.el7.x86_64.rpm
3.安装命令
rpm -i gitlab-ce-12.3.5-ce.0.el7.x86_64.rpm
如果报错----------------------------------------------------------------------------------------
warning: soft/gitlab-ce-10.7.3-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY
error: Failed dependencies:
policycoreutils-python is needed by gitlab-ce-10.7.3-ce.0.el7.x86_64
执行
yum install
policycoreutils-python
无报错请略过-----------------------------------------------------------------------------------
4.修改gitlab配置文件指定服务器ip和自定义端口
vim /etc/gitlab/gitlab.rb
5.重置gitlab
gitlab-ctl reconfigure
6.gitlab启动
gitlab-ctl start