安装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)
相关推荐
强子感冒了28 分钟前
Cherry Studio是如何联网的?一次详细的HTTP抓包分析与实现原理探究
笔记
挨踢学霸6 小时前
技术全面重构|MsgHelper 新版深度拆解:交互、视觉与逻辑的底层优化(二)
经验分享·笔记·微信·架构·自动化
gpio_017 小时前
自建gitlab服务器并用sakurafrp穿透
运维·服务器·gitlab
OxyTheCrack7 小时前
【C++】简述Observer观察者设计模式附样例(C++实现)
开发语言·c++·笔记·设计模式
林鸿群7 小时前
Git 实战:如何将本地 .NET 项目推送到 GitLab 私有仓库
git·gitlab·.net
Fuliy967 小时前
第三阶段:进化与群体智能 (Evolutionary & Swarm Intelligence)
人工智能·笔记·python·学习·算法
白云偷星子7 小时前
云原生笔记6
linux·运维·笔记·mysql·云原生
小陈phd7 小时前
多模态大模型学习笔记(十六)——Transformer 学习之 Decoder Only
人工智能·笔记·深度学习·学习·自然语言处理·transformer
白云偷星子7 小时前
云原生笔记5
linux·运维·笔记·云原生·tomcat
tingshuo29177 小时前
R001 记忆化搜索 ABCPATH - SPOJ 有方向的搜索
笔记