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

相关推荐
一念一花一世界4 分钟前
Arbess从基础到实践(25) - 集成GitLab+阿里云OSS实现Java项目自动化构建并将制品上传Aliyun OSS
java·阿里云·gitlab·cicd·arbess
肉清15 分钟前
linux自用命令
linux·服务器·前端
星星泡饭29217 分钟前
工业标识自动化——MARKING Configurator 从数据导入到热转移打印的全流程教程
运维·自动化·菲尼克斯
Xの哲學18 分钟前
Linux链路聚合深度解析: 从概念到内核实现
linux·服务器·算法·架构·边缘计算
中科米堆20 分钟前
自动化大尺寸批量3D检测,自动化三维扫描系统实现钢板支架在线检测-中科米堆CASAIM
运维·3d·自动化·3d全尺寸检测
cetcht888822 分钟前
35kV-750kV 变电站集中监控系统(涵盖火灾消防、安全防卫、动环、智能锁控、智能巡视等) 设备配置与布置
大数据·运维·物联网·机器人·能源
wanhengidc24 分钟前
具有ARM架构云手机的功能
运维·服务器·arm开发·科技·智能手机·云计算
图乐aj25 分钟前
MySQL 运维之日常运维篇 二
运维·mysql
wanhengidc32 分钟前
巨 椰 云手机离线多开
运维·服务器·科技·智能手机·云计算
代码游侠33 分钟前
应用——管道与文件描述符
linux·服务器·c语言·学习·算法