安装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)
相关推荐
whyTeaFo28 分钟前
GAMES101: Lecture 10: Geometry 1 (Introduction) ppt笔记
笔记
sulikey1 小时前
个人Linux操作系统学习笔记11 - 环境变量
linux·笔记·学习
依然范特东2 小时前
强化学习笔记2--bellman equation
人工智能·笔记
乐观勇敢坚强的老彭3 小时前
信奥C++一维数组笔记
开发语言·c++·笔记
昕光xg3 小时前
Istio笔记04-基于Jaeger的分布式链路追踪
笔记·分布式·istio
学计算机的计算基4 小时前
操作系统内存管理全解:虚拟内存、页表、COW、malloc、OOM一篇搞定
java·笔记·算法
AOwhisky4 小时前
Python 学习笔记(第五期)——组合数据类型:列表、元组、集合与字典精讲——核心知识点自测与详解
开发语言·笔记·python·学习·云计算
砚凝霜4 小时前
软考网络工程师|第 2 章 信道延迟、传输介质、数据编码、数字调制、PCM 完整备考笔记
网络·笔记·pcm
不厌 -_-4 小时前
gitlab中怎么创建MR提交模板
gitlab·mr
疯狂打码的少年17 小时前
【软件工程】软件项目估算(LOC/FP/COCOMO)+ 风险管理
笔记·软件工程