centos服务器安装gitlab

安装gitlab

下载路径:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M\&O=D

1.## 安装必要组件

sudo yum install -y curl policycoreutils-python openssh-server perl

2.## 开启https

firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https

systemctl reload firewalld ##刷新防火墙

3.## 开启sshd

systemctl enable sshd
systemctl start sshd

4.## 安装gitlab 安装包

rpm -ivh gitlab-ce-17.1.1-ce.0.el7.x86_64.rpm --force --nodeps

5.## 编辑配置 修改属性 external_url 'http://ip:8070' //或直接修改域名

vi /etc/gitlab/gitlab.rb

6.## 刷新配置

gitlab-ctl reconfigure

7.## 重启

gitlab-ctl restart

8.## 查看初始化密码

cat /etc/gitlab/initial_root_password

相关推荐
青梅橘子皮42 分钟前
Linux---权限
linux·运维·服务器
Jul1en_1 小时前
Claude 迁移 Codex 工作流迁移与更新
java·服务器·前端·后端·ai编程
杨云龙UP2 小时前
Windows Server 2012 环境下 Oracle 11.2 使用 expdp 实现自动备份、异地复制与定期清理_20260504
服务器·数据库·windows·mysql·docker·oracle·容器
小风吹啊吹~2 小时前
vscode的tunnel链接(Linux 服务器 + Windows 本地电脑版本)
服务器·vscode·microsoft·远程工作
Yupureki3 小时前
《Linux网络编程》4.应用层HTTP协议
linux·服务器·c语言·网络·c++·http
小则又沐风a3 小时前
list模拟实现
java·服务器·list
拾光Ծ3 小时前
【Linux系统】进程信号(上)
linux·运维·服务器·面试·信号处理
咖喱o3 小时前
网络-堆叠
linux·运维·服务器·网络
clear sky .3 小时前
【TCP】TCP数据粘包/分包问题
java·服务器·网络
齐齐大魔王10 小时前
linux-僵死进程处理
linux·运维·服务器