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

相关推荐
菜菜艾8 小时前
基于llama.cpp部署私有大模型
linux·运维·服务器·人工智能·ai·云计算·ai编程
重生的黑客8 小时前
Linux开发工具:条件编译、动静态库与 make/makefile 入门
linux·运维·服务器
minji...9 小时前
Linux 线程同步与互斥(三) 生产者消费者模型,基于阻塞队列的生产者消费者模型的代码实现
linux·运维·服务器·开发语言·网络·c++·算法
航Hang*9 小时前
VMware vSphere 云平台运维与管理基础——第2章(扩展):VMware ESXi 5.5 安装、配置与运维
运维·服务器·github·系统安全·虚拟化
SPC的存折9 小时前
MySQL 8组复制完全指南
linux·运维·服务器·数据库·mysql
运维行者_9 小时前
OpManager MSP NetFlow Analyzer集成解决方案,应对多客户端网络流量监控挑战
大数据·运维·服务器·网络·数据库·自动化·运维开发
dashizhi201511 小时前
共享文件禁止拖动本地磁盘、共享文件禁止另存为、禁止打印共享文件、禁止复制共享文件的方法
运维·服务器·网络·安全·电脑
IMPYLH11 小时前
Linux 的 nproc 命令
linux·运维·服务器·bash
kcuwu.13 小时前
从0到1:VMware搭建CentOS并通过FinalShell玩转Linux命令
linux·运维·centos
万山寒13 小时前
linux日志查询,查找某个关键词后面的内容
linux·运维·服务器