安装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)
相关推荐
cwtlw9 小时前
PhotoShop学习01
笔记·学习·ui·photoshop
远离UE49 小时前
UE5 Computer Shader学习笔记
笔记·学习·ue5
cmc102811 小时前
47.matlab 中filter design工具设计的滤波器如何在.m代码中调用
笔记
SHIZHK11 小时前
ArcGis若干问题
笔记
Long_poem14 小时前
【自学笔记】Vue基础知识点总览-持续更新
前端·vue.js·笔记
you来有去14 小时前
记录一下在k3s快速创建gitlab
java·kubernetes·gitlab
黑色火種14 小时前
Flask笔记
笔记·python·flask
白云千载尽15 小时前
大语言加持的闭环端到端自动驾驶模型 学习笔记纯干货
论文阅读·笔记·学习·自动驾驶·carla·vlm
是懒羊羊吖~16 小时前
SQL------搭建sql靶场和打开sql靶场及报错解决
数据库·笔记·sql·mysql·phpstudy·sqli-labs
wrjwww16 小时前
【Git学习笔记】Git常用命令
笔记·git·学习