CentOS 7 安装部署GitLab笔记

环境:CentOS 7.9

GitLab:社区版 11.10.8

一、 系统更新yum

复制代码
# yum -y update
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 *******                                                                                                                                                                               4/4 
更新完毕:
  freerdp-libs.x86_64 0:2.1.1-5.el7_9                                                                                   libwinpr.x86_64 0:2.1.1-5.el7_9                                                                                  

完毕!
复制代码

二、安装基础依赖

1、安准基础依赖

复制代码
# sudo yum install curl policycoreutils openssh-server openssh-clients
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.bfsu.edu.cn
 * updates: mirrors.aliyun.com
软件包 curl-7.29.0-59.el7_9.1.x86_64 已安装并且是最新版本
软件包 policycoreutils-2.5-34.el7.x86_64 已安装并且是最新版本
软件包 openssh-server-7.4p1-21.el7.x86_64 已安装并且是最新版本
软件包 openssh-clients-7.4p1-21.el7.x86_64 已安装并且是最新版本
无须任何处理

#启动ssh服务&设置为开机启动
# sudo systemctl enable sshd

sudo systemctl start sshd

复制代码

2、安装Postfix

Postfix是一个邮件服务器,GitLab发送邮件需要用到

复制代码
# sudo yum install postfix
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.bfsu.edu.cn
 * updates: mirrors.aliyun.com
软件包 2:postfix-2.10.1-9.el7.x86_64 已安装并且是最新版本
无须任何处理

-------启动postfix并设置为开机启动
# sudo systemctl enable postfix
# sudo systemctl start postfix
复制代码

3、开放ssh以及http服务(80端口)

复制代码
----开放ssh、http服务
# sudo firewall-cmd --add-service=ssh --permanent
Warning: ALREADY_ENABLED: ssh
success
# sudo firewall-cmd --add-service=http --permanent
success
-----重载防火墙规则使生效
# sudo firewall-cmd --reload
success
复制代码

三、安装GitLab

1.添加GitLab社区版Package

# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

 2.安装GitLab社区版

复制代码
# sudo yum install -y gitlab-ce

*******

*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.


_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/

Thank you for installing GitLab!

*****

已安装:
gitlab-ce.x86_64 0:14.4.2-ce.0.el7

完毕!

复制代码

3. 查看安装GitLab版本

#cat /opt/gitlab/embedded/service/gitlab-rails/VERSION 14.4.2

 

posted @   钟灵.毓秀  阅读(284)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
点击右上角即可分享
微信分享提示