版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_37618797/article/details/91350289
官网:
https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
网盘:https://pan.baidu.com/s/1V9ntuFsfZA5e0cnqje_8Og 提取码:jeb8
1.yum install -y curl policycoreutils-python openssh-server cronie
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-12.3.0-ce.0.el7.x86_64.rpm/download.rpm
2.rpm -ivh /opt/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
rpm -ivh /data/ gitlab-ce-12.3.0-ce.0.el7.x86_64.rpm
(3.lokkit -s http -s ssh
service stop iptables
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
4.yum install postfix
5.service postfix start
6.chkconfig postfix on
(curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ce)以上是yum 安装
8.gitlab-ctl reconfigure(这个过程时间比较长)
9.gitlab-ctl start
10.浏览器访问ip地址 http://192.168.131.130
11.设置root的密码
12.登录
13.进入gitlab主页
初始化配置gitlab
启动gitlab
停止gitlab