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

相关推荐
碎梦归途2 小时前
思科网络设备配置命令大全,涵盖从交换机到路由器的核心配置命令
linux·运维·服务器·网络·网络协议·路由器·交换机
七维大脑虚拟机2 小时前
飞牛NAS公网IPv6+DDNS远程访问零延迟教程
运维·服务器·网络
小天源2 小时前
nginx在centos7上热升级步骤
linux·服务器·nginx
宴之敖者、4 小时前
Linux——\r,\n和缓冲区
linux·运维·服务器
LuDvei4 小时前
LINUX错误提示函数
linux·运维·服务器
未来可期LJ4 小时前
【Linux 系统】进程间的通信方式
linux·服务器
心理之旅5 小时前
高校文献检索系统
运维·服务器·容器
Lenyiin5 小时前
Linux 基础IO
java·linux·服务器
The Chosen One9855 小时前
【Linux】深入理解Linux进程(一):PCB结构、Fork创建与状态切换详解
linux·运维·服务器
2501_927773076 小时前
uboot挂载
linux·运维·服务器