安装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)
相关推荐
结衣结衣.7 分钟前
python中的函数介绍
java·c语言·开发语言·前端·笔记·python·学习
LN-ZMOI34 分钟前
c++学习笔记1
c++·笔记·学习
qq_421833671 小时前
计算机网络——应用层
笔记·计算机网络
@qike2 小时前
【C++】—— 日期类的实现
c语言·c++·笔记·算法·学习方法
IG工程师2 小时前
关于 S7 - 1200 通过存储卡进行程序更新
经验分享·笔记·自动化
霸王蟹2 小时前
Vue3 项目中为啥不需要根标签了?
前端·javascript·vue.js·笔记·学习
向上的车轮3 小时前
Django学习笔记八:发布RESTful API
笔记·学习·django
向上的车轮3 小时前
Django学习笔记九:RESTAPI添加用户认证和授权
笔记·学习·django
陈奕迅本讯3 小时前
数据结构-链表笔记
数据结构·笔记·链表
speop3 小时前
408笔记|随笔记录|自用|2
java·redis·笔记