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

相关推荐
wdfk_prog9 分钟前
[Linux]学习笔记系列 -- [drivers][clk]clk-bulk
linux·笔记·学习
Wpa.wk11 分钟前
Docker容器隔离(namespace+cgroups)-底层原理
运维·docker·容器
IT狂人日志13 分钟前
临近年底,病毒肆虐,为防暴力破解,把服务器改为证书登录
运维·服务器
修己xj15 分钟前
Docker 部署 PicGo:一次配置,随处使用
运维·docker·容器
Ha_To15 分钟前
2026.1.29 docker的使用
运维·docker·容器
刘某某.19 分钟前
在 mac 和 linux 系统上使用 pyenv
linux·运维·macos
杜子不疼.25 分钟前
加载了cpolar的Reader 电子书管理工具远程使用体验
linux·人工智能
weixin_3954489133 分钟前
mult_yolov5_post_copy.h_cursor_0129
linux·网络·人工智能
A-刘晨阳33 分钟前
Prometheus + Grafana + Alertmanager 实现邮件监控告警及配置告警信息
运维·云计算·grafana·prometheus·监控·邮件
是垚不是土36 分钟前
OpenTelemetry+Jaeger+ES:分布式链路追踪实战部署
大数据·linux·运维·分布式·elasticsearch·全文检索