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 @ 2021-11-16 15:25  钟灵.毓秀  阅读(262)  评论(0编辑  收藏  举报