安装gitlab笔记

安装vim编辑器

复制代码
yum install vim -y

安装ssh协议,在CentOs系统上安装所需的依赖:ssh,防火墙,postfix(用于邮件通知)wget,以下这些命令也会打开系统防火墙中的HTTP和SSH端口访问

复制代码
yum install -y curl policycoreutils-python openssh-server

设置ssh服务开机自启动

复制代码
systemctl enable sshd

启动SSH服务

复制代码
systemctl start sshd

安装防火墙

复制代码
yum install firewalld systemd -y

开启防火墙

复制代码
service firewalld start

添加HTTP服务到firewalld

复制代码
firewall-cmd --permanent --add-service=http

重启防火墙

复制代码
systemctl reload firewalld

安装Postfix以发送邮件

复制代码
yum install postfix

将postfix服务设置成开机自启动

复制代码
systemctl enable postfix

启动postfix

复制代码
systemctl start postfix

安装wget,用于从外网上下载插件

复制代码
yum -y install wget

找到清华大学开源镜像gitlab安装链接,使用wget访问下载

复制代码
wget http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.4.2-ce.0.el7.x86_64.rpm

安装gitlab

复制代码
rpm -i gitlab-ce-15.4.2-ce.0.el7.x86_64.rpm

将设置好的端口加入防火墙

复制代码
firewall-cmd --zone=public --add-port=1001/tcp --permanent

重启防火墙

复制代码
systemctl reload firewalld

重置gitlab

复制代码
gitlab-ctl reconfigure
```
# 修改root用户密码打开gitlab控制台(gitlab-rails console -e production)找到账户(user=User.where(id:1).first)修改密码(user.password=12345678)保存(user.save!)推出(quit)重启gitlab(gitlab-ctl restart)
相关推荐
UQI-LIUWJ18 分钟前
李宏毅LLM笔记: AI Agent
人工智能·笔记
ouliten34 分钟前
cuda编程笔记(6)--流
笔记
Love__Tay39 分钟前
笔记/云计算基础
笔记·学习·云计算
李元豪1 小时前
【行云流水ai笔记】粗粒度控制:推荐CTRL、GeDi 细粒度/多属性控制:推荐TOLE、GPT-4RL
人工智能·笔记
特种加菲猫3 小时前
指尖上的魔法:优雅高效的Linux命令手册
linux·笔记
wuxuanok4 小时前
Web后端开发-分层解耦
java·笔记·后端·学习
wuxuanok4 小时前
Web后端开发-请求响应
java·开发语言·笔记·学习
诗句藏于尽头5 小时前
内网使用rustdesk搭建远程桌面详细版
笔记
蜡笔小电芯5 小时前
【C语言】指针与回调机制学习笔记
c语言·笔记·学习
丰锋ff5 小时前
瑞斯拜考研词汇课笔记
笔记