Linux Red Hat 7.9 Server安装GitLab

1、关闭防火墙

执行

bash 复制代码
systemctl disable firewalld

查看服务器状态

bash 复制代码
systemctl status firewalld

2、禁用selinux

vi /etc/selinux/config

将SELINUX 的值改为 disabled

3、安装policycoreutils-python

执行

bash 复制代码
yum install policycoreutils-python

4、下载gitlab

bash 复制代码
 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

执行

bash 复制代码
rpm -ivh gitlab-ce-14.9.1-ce.0.el7.x86_64.rpm

6、修改 external_url

bash 复制代码
 vim /etc/gitlab/gitlab.rb

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

7、重启gitlab

执行

bash 复制代码
gitlab-ctl reconfigure

等待执行完,有点费时

执行

bash 复制代码
gitlab-ctl start

8、查看默认root账号密码

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

执行

bash 复制代码
cat /etc/gitlab/initial_root_password

ABiIigxlD1IV/Lkiw60aDnrLoQQ+oAp1uQHJd1vTDy8=

9、登录gitlab

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

这个url为之前修改的external_url

使用root的账号密码登录

相关推荐
大聪明-PLUS3 分钟前
嵌入式 Linux 初学者指南 – 第 2 部分
linux·嵌入式·arm·smarc
feng_blog668834 分钟前
【信创系统】统信UOS Linux4.19+libbpf开发ebpf程序实现文件操作的实时监控
linux·ebpf
wanhengidc1 小时前
云手机能够流畅运行大型游戏吗
运维·服务器·游戏·智能手机·云计算
繁华的地方不一定留下你的脚印2 小时前
ubuntu18.04版本配置静态IP并且可以上网(解决配置静态IP不能额上网的问题)
运维·服务器
祎直向前2 小时前
在Ubuntu中安装并配置ssh
linux·ubuntu·ssh
业余幻想家3 小时前
Windows10/Windows11家庭版系统关闭自动更新
运维·windows
努力进修3 小时前
跨地域传文件太麻烦?Nginx+cpolar 让本地服务直接公网访问
运维·nginx·cpolar
Qayrup3 小时前
docker 搭建私有仓库,推送并拉取
运维·docker·容器
南林yan3 小时前
Debian系统的多内核共存
linux·debian·linux内核