Linux Red Hat 7.9 Server安装GitLab

1、关闭防火墙

执行

systemctl disable firewalld

查看服务器状态

systemctl status firewalld

2、禁用selinux

vi /etc/selinux/config

将SELINUX 的值改为 disabled

3、安装policycoreutils-python

执行

yum install policycoreutils-python

4、下载gitlab

 wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-14.9.1-ce.0.el7.x86_64.rpm/download.rpm

5、安装gitlab

执行

rpm -ivh gitlab-ce-14.9.1-ce.0.el7.x86_64.rpm

6、修改 external_url

 vim /etc/gitlab/gitlab.rb

由于我本地IP为 192.168.100.155,所以设置这个ip

7、重启gitlab

执行

gitlab-ctl reconfigure

等待执行完,有点费时

执行

gitlab-ctl start

8、查看默认root账号密码

初始管理员密码存储在/etc/gitlab/initial_root_password文件中,需要在安装后的24小时内查看,否则文件会被删除。

执行

cat /etc/gitlab/initial_root_password

ABiIigxlD1IV/Lkiw60aDnrLoQQ+oAp1uQHJd1vTDy8=

9、登录gitlab

浏览器输入http://192.168.100.155:8088/

这个url为之前修改的external_url

使用root的账号密码登录

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值