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 小时前
超微 SYS-E403-14B-FRN2T 深度解析:面向边缘与 IoT 场景的高扩展紧凑型服务器
运维·服务器·人工智能·科技·物联网·ai·边缘计算
澄澈青空~2 小时前
病毒木马侵入系统内核的底层运作机理
java·linux·服务器
oMcLin2 小时前
如何在CentOS 8.4上配置并优化Nginx负载均衡,确保跨境电商平台的高并发请求稳定处理?
nginx·centos·负载均衡
AI+程序员在路上2 小时前
嵌入式Linux中添加ftp服务器的简易方法
linux·运维·服务器
小码吃趴菜2 小时前
TCP协议编程流程
服务器·网络·tcp/ip
阿里超级工程师3 小时前
yunedit-ssh相比jenkins和winscp的特点和优势分析
服务器·ssh·jenkins
Lam㊣3 小时前
Centos 7 系统docker pull 设置代理
docker·eureka·centos
Tab6093 小时前
接入谷歌home/assistant/智能音箱
服务器·前端·智能音箱
aliyunaliyun3 小时前
2026年京东云企业专享优惠:云服务器租用费用明细及最新报价
服务器·网络·京东云