CentosStream 10 Gitlab安装与使用

目录

简介

组件

安装gitlab

确认基础环境

设置防火墙

方式一、通过yum源安装gitlab

方法1、手动配置yum源

方法2、命令配置yum源

更新yum源

安装gitlab 

方式二、通过rpm包安装gitlab

下载rpm文件

安装 

调整默认配置 

重启gitlab

调整防火墙配置

访问验证

使用

配置中文页面

​编辑关闭自动注册


简介

GitLab是一个基于Git的代码托管、版本控制和协作开发平台;
极狐GitLab 文档 | 极狐GitLabLearn how to use and administer GitLab, the most scalable Git-based fully integrated platform for software development.https://gitlab.cn/docs/jh/

组件

Nginx、postgresql、redis、unicorn、sidekiq。这用gitlab-ctl status命令也可查看到。

安装gitlab

确认基础环境

(curl;policycoreutils;openssh-server;openssh-clients)验证命令:

curl:

curl -V


policycoreutils:

sestatus

openssh-server:

systemctl status sshd

openssh-clients: 

ssh

若不存在执行安装命令:

yum -y install curl policycoreutils openssh-server openssh-clients
设置防火墙

1、确认firewall是否安装

rpm -q firewalld

2、若未安装执行命令

sudo dnf install firewalld

3、确认firewall状态

sudo systemctl status firewalld

4、若已安装可能因为firewall不在系统变量中

/usr/bin/firewall-cmd --state

5、添加http服务允许通过防火墙并永久配置到配置文件中

/usr/bin/firewall-cmd --permanent --add-service=http

6、重新加载防火墙

systemctl reload firewalld
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值