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

相关推荐
小云数据库服务专线1 天前
GaussDB 应用侧报Read timed out解决方法
linux·服务器·gaussdb
资源补给站1 天前
服务器高效操作指南:Python 环境退出与 Linux 终端快捷键全解析
linux·服务器·python
一苓二肆1 天前
代码加密技术
linux·windows·python·spring·eclipse
玉树临风江流儿1 天前
Linux驱动开发实战指南-上
linux·驱动开发
山塘小鱼儿1 天前
open-webui docker高速下载&本地部署
运维·docker·容器
木欣欣粉皮1 天前
Ubuntu使用图片
linux·ubuntu
迎風吹頭髮1 天前
Linux服务器编程实践27-详解TCP状态转移:从LISTEN到TIME_WAIT的完整路径
linux·服务器·网络
G31135422731 天前
云服务器怎么设置虚拟IP,云服务器能起虚拟ip吗
运维·服务器·tcp/ip
森G1 天前
2一、u-boot下载编译
linux·arm开发
Ching·1 天前
linux系统编程(十③)RK3568 socket之 TCP 服务器的实现【更新客户端断开重连依旧可以收发】
linux·服务器·tcp/ip·rk3568