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的账号密码登录

相关推荐
donglxd8 分钟前
老电脑优化全知道(包括软件和硬件优化)
运维·windows·系统安全
奶油话梅糖18 分钟前
LS-Linux-004 误删 Python 和 yum、dnf 后的恢复步骤
linux
和煦的春风37 分钟前
案例分析 | SurfaceFlinger 大片Runnable引起的卡顿
android·linux
群联云防护小杜1 小时前
云服务器被黑客攻击应急响应与加固指南(上)
运维·服务器·人工智能·tcp/ip·自动化·压力测试
涵信1 小时前
第十二节:性能优化高频题-shallowRef/shallowReactive使用场景
linux·ubuntu·性能优化
老秦包你会1 小时前
Linux课程五课---Linux进程认识1
linux·运维·服务器
等猪的风2 小时前
openwrt作旁路由时的几个常见问题 openwrt作为旁路由配置zerotier 图文讲解
运维·服务器·网络
互联网搬砖老肖2 小时前
运维打铁:域名详解及常见问题解决
运维·github
浩浩测试一下2 小时前
网络安全实战指南:从安全巡检到权限维持的应急响应与木马查杀全(命令查收表)
linux·安全·web安全·ubuntu·网络安全·负载均衡·安全架构
我想吃余2 小时前
Linux学习笔记(一):Linux下的基本指令
linux·笔记·学习