在安装gitlab时需要保证虚拟机有4G的内存

 问题分析

这个报错是因为未配置yum源,所以需要安装EPEL源:

[root@bogon ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 0:56:41 ago on Mon 08 Apr 2024 02:38:32 PM CST.
epel-release-latest-8.noarch.rpm                                            20 kB/s |  25 kB     00:01    
Dependencies resolved.
===========================================================================================================
 Package                    Architecture         Version                  Repository                  Size
===========================================================================================================
Installing:
 epel-release               noarch               8-19.el8                 @commandline                25 k

Transaction Summary
===========================================================================================================
Install  1 Package

Total size: 25 k
Installed size: 35 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                   1/1 
  Installing       : epel-release-8-19.el8.noarch                                                      1/1 
  Running scriptlet: epel-release-8-19.el8.noarch                                                      1/1 
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

  Verifying        : epel-release-8-19.el8.noarch                                                      1/1 

Installed:
  epel-release-8-19.el8.noarch                                                                             

Complete!

使用python3安装

[root@bogon ~]# yum install -y curl policycoreutils-python3 openssh-server
Extra Packages for Enterprise Linux 8 - x86_64                             3.8 MB/s |  16 MB     00:04    
Last metadata expiration check: 0:00:06 ago on Mon 08 Apr 2024 03:35:41 PM CST.
Package curl-7.61.1-22.el8.x86_64 is already installed.
Package python3-policycoreutils-2.9-16.el8.noarch is already installed.
Package openssh-server-8.0p1-10.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

 

[root@bogon ~]# yum install -y curl policycoreutils-python3 openssh-server perl

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐