CM的私有仓库搭建

                                     作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

 

 

  我们有时候会因为网络不稳定的因素,导致安装某些服务直接失败。当安装包比较大的时候,我们就得考虑自建私有仓库了,这样会为我们节省不少时间。而自建私有仓库的确是很简单的一种方式,接下来我们就以CM和CDH的软件包为例,来建设一个局域网的镜像库。

 

 

一.安装WEB服务器

  要托管内部存储库,必须在Cloudera Manager主机可访问的内部主机上安装或使用现有Web服务器,然后将存储库文件下载到Web服务器主机。

1>.安装Apache HTTP Server

[root@node105 ~]# yum  -y install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.tuna.tsinghua.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-88.el7.centos will be installed
--> Processing Dependency: httpd-tools = 2.4.6-88.el7.centos for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---> Package httpd-tools.x86_64 0:2.4.6-88.el7.centos will be installed
---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================================================================
 Package                                                     Arch                                                   Version                                                                Repository                                            Size
======================================================================================================================================================================================================================================================
Installing:
 httpd                                                       x86_64                                                 2.4.6-88.el7.centos                                                    base                                                 2.7 M
Installing for dependencies:
 apr                                                         x86_64                                                 1.4.8-3.el7_4.1                                                        base                                                 103 k
 apr-util                                                    x86_64                                                 1.5.2-6.el7                                                            base                                                  92 k
 httpd-tools                                                 x86_64                                                 2.4.6-88.el7.centos                                                    base                                                  90 k
 mailcap                                                     noarch                                                 2.1.41-2.el7                                                           base                                                  31 k

Transaction Summary
======================================================================================================================================================================================================================================================
Install  1 Package (+4 Dependent packages)

Total size: 3.0 M
Installed size: 10 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : apr-1.4.8-3.el7_4.1.x86_64                                                                                                                                                                                                         1/5 
  Installing : apr-util-1.5.2-6.el7.x86_64                                                                                                                                                                                                        2/5 
  Installing : httpd-tools-2.4.6-88.el7.centos.x86_64                                                                                                                                                                                             3/5 
  Installing : mailcap-2.1.41-2.el7.noarch                                                                                                                                                                                                        4/5 
  Installing : httpd-2.4.6-88.el7.centos.x86_64                                                                                                                                                                                                   5/5 
  Verifying  : httpd-tools-2.4.6-88.el7.centos.x86_64                                                                                                                                                                                             1/5 
  Verifying  : apr-1.4.8-3.el7_4.1.x86_64                                                                                                                                                                                                         2/5 
  Verifying  : mailcap-2.1.41-2.el7.noarch                                                                                                                                                                                                        3/5 
  Verifying  : httpd-2.4.6-88.el7.centos.x86_64                                                                                                                                                                                                   4/5 
  Verifying  : apr-util-1.5.2-6.el7.x86_64                                                                                                                                                                                                        5/5 

Installed:
  httpd.x86_64 0:2.4.6-88.el7.centos                                                                                                                                                                                                                  

Dependency Installed:
  apr.x86_64 0:1.4.8-3.el7_4.1                             apr-util.x86_64 0:1.5.2-6.el7                             httpd-tools.x86_64 0:2.4.6-88.el7.centos                             mailcap.noarch 0:2.1.41-2.el7                            

Complete!
[root@node105 ~]# 
[root@node105 ~]# yum -y install httpd

相关文章:

  • 2021-10-31
  • 2021-08-10
  • 2021-04-06
  • 2022-01-02
  • 2021-09-07
猜你喜欢
  • 2021-07-04
  • 2022-01-17
  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2021-04-25
相关资源
相似解决方案