进入官网https://packages.gitlab.com/gitlab/gitlab-ce/
选择相应的版本下载
安装相关的依赖
yum install curl openssh-server openssh-clients postfix policycoreutils-python
启动sshd
systemctl enable sshd
systemctl start sshd
开启防火墙
systemctl start firewalld
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
启动postfix
systemctl enable postfix
systemctl start postfix
安装gitlab的rpm包
rpm -i gitlab-ce-11.10.0-ce.0.el7.x86_64.rpm
3、修改gitlab的端口号:
vim /etc/gitlab/gitlab.rb external_url 'http://192.168.109.128:9001'
4、开放相应的防火墙端口
firewall-cmd --zone=public --add-port=8000-9000/tcp --permanent
firewal-cmd --reload
5、配置GitLab(配置完自动启动,默认账号root)
gitlab-ctl reconfigure
6、开启重启关闭
gitlab-ctl start
gitlab-ctl stop
gitlab-ctl restart
7、浏览器访问
标签:git,postfix,--,gitlab,lab,start,systemctl,ctl,安装 From: https://www.cnblogs.com/powfu/p/16949207.html