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

相关推荐
xdscode24 分钟前
Linux云服务器安装openclaw,并对接飞书通道
linux·服务器·飞书·openclaw
lswzw41 分钟前
win11家庭版 安装 openclaw
服务器
LegendNoTitle1 小时前
计算机三级等级考试 网络技术 选择题考点详细梳理
服务器·前端·经验分享·笔记·php
2401_877274241 小时前
从匿名管道到 Master-Slave 进程池:Linux 进程间通信深度实践
linux·服务器·c++
Irene19912 小时前
什么是 DevOps
gitlab·devops
feng_you_ying_li2 小时前
linux之用户的权限详解(4)
linux·运维·服务器
二进制person3 小时前
JavaEE初阶 --网络编程
linux·服务器·网络
Irissgwe4 小时前
进程间通信
linux·服务器·网络·c++·进程间通信
岁岁种桃花儿4 小时前
AI超级智能开发系列从入门到上天第四篇:AI应用方案设计
java·服务器·开发语言
TEC_INO5 小时前
嵌入式 Linux 开发知识总结
linux·运维·服务器