安装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)
相关推荐
蒙奇D索大7 小时前
【数据结构】考研408 | 冲突解决精讲: 拉链法——链式存储的艺术与优化
数据结构·笔记·考研·改行学it
_Minato_7 小时前
数据结构知识整理——复杂度的计算
数据结构·经验分享·笔记·算法·软考
x_lrong7 小时前
交叉验证笔记
笔记
لا معنى له7 小时前
学习笔记:注意力机制(Attention)、自注意力(Self-Attention)和多头注意力(Multi-Head Attention)
笔记·学习
走在路上的菜鸟7 小时前
Android学Dart学习笔记第十六节 类-构造方法
android·笔记·学习·flutter
代码游侠8 小时前
学习笔记——线程控制 - 互斥与同步
linux·运维·笔记·学习·算法
四谎真好看8 小时前
MySQL 学习笔记(进阶篇1)
笔记·学习·mysql·学习笔记
三品吉他手会点灯8 小时前
STM32F103学习笔记-19-SysTick-系统定时器(第1节)-功能框图讲解和优先级配置
笔记·stm32·单片机·嵌入式硬件·学习
小易吾8 小时前
VISIO导出高清PDF有效方法
笔记·pdf
لا معنى له8 小时前
学习笔记:Transformer
人工智能·笔记·深度学习·学习·机器学习·transformer