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 :2.4.-.el7.centos will be installed
--> Processing Dependency: httpd-tools = 2.4.-.el7.centos for package: httpd-2.4.-.el7.centos.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.-.el7.centos.x86_64
--> Processing Dependency: libaprutil-.so.()(64bit) for package: httpd-2.4.-.el7.centos.x86_64
--> Processing Dependency: libapr-.so.()(64bit) for package: httpd-2.4.-.el7.centos.x86_64
--> Running transaction check
---> Package apr.x86_64 :1.4.-.el7_4. will be installed
---> Package apr-util.x86_64 :1.5.-.el7 will be installed
---> Package httpd-tools.x86_64 :2.4.-.el7.centos will be installed
---> Package mailcap.noarch :2.1.-.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================================================================================================================
Installing:
httpd x86_64 2.4.-.el7.centos base 2.7 M
Installing for dependencies:
apr x86_64 1.4.-.el7_4. base k
apr-util x86_64 1.5.-.el7 base k
httpd-tools x86_64 2.4.-.el7.centos base k
mailcap noarch 2.1.-.el7 base k Transaction Summary
======================================================================================================================================================================================================================================================
Install Package (+ Dependent packages) Total size: 3.0 M
Installed size: M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : apr-1.4.-.el7_4..x86_64 /
Installing : apr-util-1.5.-.el7.x86_64 /
Installing : httpd-tools-2.4.-.el7.centos.x86_64 /
Installing : mailcap-2.1.-.el7.noarch /
Installing : httpd-2.4.-.el7.centos.x86_64 /
Verifying : httpd-tools-2.4.-.el7.centos.x86_64 /
Verifying : apr-1.4.-.el7_4..x86_64 /
Verifying : mailcap-2.1.-.el7.noarch /
Verifying : httpd-2.4.-.el7.centos.x86_64 /
Verifying : apr-util-1.5.-.el7.x86_64 / Installed:
httpd.x86_64 :2.4.-.el7.centos Dependency Installed:
apr.x86_64 :1.4.-.el7_4. apr-util.x86_64 :1.5.-.el7 httpd-tools.x86_64 :2.4.-.el7.centos mailcap.noarch :2.1.-.el7 Complete!
[root@node105 ~]#

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

2>.配置Httpd服务

  当尝试从本地存储库下载包时,跳过此步骤可能会导致错误消息哈希验证失败,尤其是在Cloudera Manager 6及更高版本中。

[root@node105 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.`date +%F`
[root@node105 ~]#
[root@node105 ~]# grep ".tgz" /etc/httpd/conf/httpd.conf | grep -v ' #'
AddType application/x-gzip .gz .tgz
[root@node105 ~]#
[root@node105 ~]# sed -i s'#.tgz#.tgz .parcel#' /etc/httpd/conf/httpd.conf
[root@node105 ~]#
[root@node105 ~]# grep ".tgz" /etc/httpd/conf/httpd.conf | grep -v ' #'
AddType application/x-gzip .gz .tgz .parcel          #其实我就是在.tgz后面加了一个“.parcel”的后缀,这是CM官方强调要做的一个操作!
[root@node105 ~]#
[root@node105 ~]#

3>.启动httpd服务

[root@node105 ~]# systemctl start httpd
[root@node105 ~]#
[root@node105 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since Thu -- :: CST; 7s ago
Docs: man:httpd()
man:apachectl()
Main PID: (httpd)
Status: "Processing requests..."
CGroup: /system.slice/httpd.service
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
└─ /usr/sbin/httpd -DFOREGROUND Feb :: node105.yinzhengjie.org.cn systemd[]: Starting The Apache HTTP Server...
Feb :: node105.yinzhengjie.org.cn systemd[]: Started The Apache HTTP Server.
[root@node105 ~]#

二.制作CM的私有仓库

1>.创建存放cm安装包的目录

[root@node101 ~]# mkdir /var/www/html/cm-5.16.

2>.将cm相关软件从官方地址下载后上传到上面创建的目录中(https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.16.1/RPMS/x86_64/

[root@node101 ~]# ll /var/www/html/cm-5.16.
total
-rwxr-xr-x root root Feb : cloudera-manager-agent-5.16.-.cm5161.p0..el7.x86_64.rpm
-rwxr-xr-x root root Feb : cloudera-manager-daemons-5.16.-.cm5161.p0..el7.x86_64.rpm
-rwxr-xr-x root root Feb : cloudera-manager-server-5.16.-.cm5161.p0..el7.x86_64.rpm
-rwxr-xr-x root root Feb : cloudera-manager-server-db--5.16.-.cm5161.p0..el7.x86_64.rpm
-rwxr-xr-x root root Feb : jdk-8u201-linux-x64.rpm                #温馨提示:这个软件包我是从Oracle官方网站download下来在上传到服务器上的!因为官方默认仅仅提供了jDK6和JDK7的rpm包!我强烈推荐使用JDK8版本!
[root@node101 ~]#
[root@node101 ~]#

3>.制作本地源 

[root@node101 ~]# yum -y install yum-utils createrepo yum-plugin-priorities
Loaded plugins: fastestmirror
base | 3.6 kB ::
extras | 3.4 kB ::
updates | 3.4 kB ::
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirrors.huaweicloud.com
* updates: mirrors..com
Resolving Dependencies
--> Running transaction check
---> Package createrepo.noarch :0.9.-.el7 will be installed
--> Processing Dependency: python-deltarpm for package: createrepo-0.9.-.el7.noarch
--> Processing Dependency: libxml2-python for package: createrepo-0.9.-.el7.noarch
--> Processing Dependency: deltarpm for package: createrepo-0.9.-.el7.noarch
---> Package yum-plugin-priorities.noarch :1.1.-.el7 will be installed
---> Package yum-utils.noarch :1.1.-.el7 will be installed
--> Processing Dependency: yum >= 3.4.- for package: yum-utils-1.1.-.el7.noarch
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.-.el7.noarch
--> Running transaction check
---> Package deltarpm.x86_64 :3.6-.el7 will be installed
---> Package libxml2-python.x86_64 :2.9.-.el7_2. will be installed
--> Processing Dependency: libxml2 = 2.9.-.el7_2. for package: libxml2-python-2.9.-.el7_2..x86_64
---> Package python-deltarpm.x86_64 :3.6-.el7 will be installed
---> Package python-kitchen.noarch :1.1.-.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.-.el7.noarch
---> Package yum.noarch :3.4.-.el7.centos.0.1 will be updated
---> Package yum.noarch :3.4.-.el7.centos will be an update
--> Processing Dependency: rpm >= 4.11.- for package: yum-3.4.-.el7.centos.noarch
--> Processing Dependency: python-urlgrabber >= 3.10- for package: yum-3.4.-.el7.centos.noarch
--> Running transaction check
---> Package libxml2.x86_64 :2.9.-.el7_1. will be updated
---> Package libxml2.x86_64 :2.9.-.el7_2. will be an update
---> Package python-chardet.noarch :2.2.-.el7_1 will be installed
---> Package python-urlgrabber.noarch :3.10-.el7 will be updated
---> Package python-urlgrabber.noarch :3.10-.el7 will be an update
---> Package rpm.x86_64 :4.11.-.el7 will be updated
--> Processing Dependency: rpm = 4.11.-.el7 for package: rpm-libs-4.11.-.el7.x86_64
--> Processing Dependency: rpm = 4.11.-.el7 for package: rpm-python-4.11.-.el7.x86_64
---> Package rpm.x86_64 :4.11.-.el7 will be an update
--> Running transaction check
---> Package rpm-libs.x86_64 :4.11.-.el7 will be updated
--> Processing Dependency: rpm-libs(x86-) = 4.11.-.el7 for package: rpm-build-libs-4.11.-.el7.x86_64
---> Package rpm-libs.x86_64 :4.11.-.el7 will be an update
---> Package rpm-python.x86_64 :4.11.-.el7 will be updated
---> Package rpm-python.x86_64 :4.11.-.el7 will be an update
--> Running transaction check
---> Package rpm-build-libs.x86_64 :4.11.-.el7 will be updated
---> Package rpm-build-libs.x86_64 :4.11.-.el7 will be an update
--> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================
Installing:
createrepo noarch 0.9.-.el7 base k
yum-plugin-priorities noarch 1.1.-.el7 base k
yum-utils noarch 1.1.-.el7 base k
Installing for dependencies:
deltarpm x86_64 3.6-.el7 base k
libxml2-python x86_64 2.9.-.el7_2. base k
python-chardet noarch 2.2.-.el7_1 base k
python-deltarpm x86_64 3.6-.el7 base k
python-kitchen noarch 1.1.-.el7 base k
Updating for dependencies:
libxml2 x86_64 2.9.-.el7_2. base k
python-urlgrabber noarch 3.10-.el7 base k
rpm x86_64 4.11.-.el7 base 1.2 M
rpm-build-libs x86_64 4.11.-.el7 base k
rpm-libs x86_64 4.11.-.el7 base k
rpm-python x86_64 4.11.-.el7 base k
yum noarch 3.4.-.el7.centos base 1.2 M Transaction Summary
===================================================================================================================================================================================
Install Packages (+ Dependent packages)
Upgrade ( Dependent packages) Total download size: 4.7 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(/): libxml2-2.9.-.el7_2..x86_64.rpm | kB ::
(/): python-deltarpm-3.6-.el7.x86_64.rpm | kB ::
(/): deltarpm-3.6-.el7.x86_64.rpm | kB ::
(/): python-kitchen-1.1.-.el7.noarch.rpm | kB ::
(/): python-chardet-2.2.-.el7_1.noarch.rpm | kB ::
(/): python-urlgrabber-3.10-.el7.noarch.rpm | kB ::
(/): rpm-build-libs-4.11.-.el7.x86_64.rpm | kB ::
(/): rpm-4.11.-.el7.x86_64.rpm | 1.2 MB ::
(/): yum-3.4.-.el7.centos.noarch.rpm | 1.2 MB ::
(/): yum-plugin-priorities-1.1.-.el7.noarch.rpm | kB ::
(/): yum-utils-1.1.-.el7.noarch.rpm | kB ::
(/): rpm-libs-4.11.-.el7.x86_64.rpm | kB ::
(/): libxml2-python-2.9.-.el7_2..x86_64.rpm | kB ::
(/): rpm-python-4.11.-.el7.x86_64.rpm | kB ::
createrepo-0.9.-.el7.noarch FAILED
http://centos.ustc.edu.cn/centos/7.6.1810/os/x86_64/Packages/createrepo-0.9.9-28.el7.noarch.rpm: [Errno 12] Timeout on http://centos.ustc.edu.cn/centos/7.6.1810/os/x86_64/Packages/createrepo-0.9.9-28.el7.noarch.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
(/): createrepo-0.9.-.el7.noarch.rpm | kB ::
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total kB/s | 4.7 MB ::
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : rpm-4.11.-.el7.x86_64 /
Updating : rpm-libs-4.11.-.el7.x86_64 /
Installing : deltarpm-3.6-.el7.x86_64 /
Installing : python-deltarpm-3.6-.el7.x86_64 /
Updating : rpm-build-libs-4.11.-.el7.x86_64 /
Updating : rpm-python-4.11.-.el7.x86_64 /
Installing : python-chardet-2.2.-.el7_1.noarch /
Installing : python-kitchen-1.1.-.el7.noarch /
Updating : libxml2-2.9.-.el7_2..x86_64 /
Installing : libxml2-python-2.9.-.el7_2..x86_64 /
Updating : python-urlgrabber-3.10-.el7.noarch /
Updating : yum-3.4.-.el7.centos.noarch /
Installing : yum-plugin-priorities-1.1.-.el7.noarch /
Installing : createrepo-0.9.-.el7.noarch /
Installing : yum-utils-1.1.-.el7.noarch /
Cleanup : yum-3.4.-.el7.centos.0.1.noarch /
Cleanup : rpm-python-4.11.-.el7.x86_64 /
Cleanup : python-urlgrabber-3.10-.el7.noarch /
Cleanup : rpm-build-libs-4.11.-.el7.x86_64 /
Cleanup : rpm-libs-4.11.-.el7.x86_64 /
Cleanup : rpm-4.11.-.el7.x86_64 /
Cleanup : libxml2-2.9.-.el7_1..x86_64 /
Verifying : rpm-python-4.11.-.el7.x86_64 /
Verifying : rpm-libs-4.11.-.el7.x86_64 /
Verifying : python-urlgrabber-3.10-.el7.noarch /
Verifying : libxml2-2.9.-.el7_2..x86_64 /
Verifying : yum-plugin-priorities-1.1.-.el7.noarch /
Verifying : rpm-4.11.-.el7.x86_64 /
Verifying : rpm-build-libs-4.11.-.el7.x86_64 /
Verifying : libxml2-python-2.9.-.el7_2..x86_64 /
Verifying : deltarpm-3.6-.el7.x86_64 /
Verifying : createrepo-0.9.-.el7.noarch /
Verifying : python-deltarpm-3.6-.el7.x86_64 /
Verifying : yum-utils-1.1.-.el7.noarch /
Verifying : python-chardet-2.2.-.el7_1.noarch /
Verifying : python-kitchen-1.1.-.el7.noarch /
Verifying : yum-3.4.-.el7.centos.noarch /
Verifying : rpm-4.11.-.el7.x86_64 /
Verifying : libxml2-2.9.-.el7_1..x86_64 /
Verifying : rpm-libs-4.11.-.el7.x86_64 /
Verifying : rpm-build-libs-4.11.-.el7.x86_64 /
Verifying : yum-3.4.-.el7.centos.0.1.noarch /
Verifying : rpm-python-4.11.-.el7.x86_64 /
Verifying : python-urlgrabber-3.10-.el7.noarch / Installed:
createrepo.noarch :0.9.-.el7 yum-plugin-priorities.noarch :1.1.-.el7 yum-utils.noarch :1.1.-.el7 Dependency Installed:
deltarpm.x86_64 :3.6-.el7 libxml2-python.x86_64 :2.9.-.el7_2. python-chardet.noarch :2.2.-.el7_1 python-deltarpm.x86_64 :3.6-.el7 python-kitchen.noarch :1.1.-.el7 Dependency Updated:
libxml2.x86_64 :2.9.-.el7_2. python-urlgrabber.noarch :3.10-.el7 rpm.x86_64 :4.11.-.el7 rpm-build-libs.x86_64 :4.11.-.el7 rpm-libs.x86_64 :4.11.-.el7
rpm-python.x86_64 :4.11.-.el7 yum.noarch :3.4.-.el7.centos Complete!
[root@node101 ~]#

[root@node101 ~]# yum -y install yum-utils createrepo yum-plugin-priorities               #安装本地源制作相关工具

[root@node101 ~]# cd /var/www/html/cm-5.16.
[root@node101 cm-5.16.]# ll
total
-rwxr-xr-x root root Feb : cloudera-manager-agent-5.16.-.cm5161.p0..el7.x86_64.rpm
-rwxr-xr-x root root Feb : cloudera-manager-daemons-5.16.-.cm5161.p0..el7.x86_64.rpm
-rwxr-xr-x root root Feb : cloudera-manager-server-5.16.-.cm5161.p0..el7.x86_64.rpm
-rwxr-xr-x root root Feb : cloudera-manager-server-db--5.16.-.cm5161.p0..el7.x86_64.rpm
-rwxr-xr-x root root Feb : jdk-8u201-linux-x64.rpm
[root@node101 cm-5.16.]#
[root@node101 cm-5.16.]# createrepo .
Spawning worker with pkgs
Spawning worker with pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@node101 cm-5.16.]#

三.选定节点测试

1>.备份主机之前的CM

[root@node110 ~]# mkdir /etc/yum.repos.d/repo-bak
[root@node110 ~]#
[root@node110 ~]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo-bak/
[root@node110 ~]#

2>.编写yum源文件内容

[root@node110 ~]# cat /etc/yum.repos.d/cloudera-manager.repo
[cloudera-manager]
# Packages for Cloudera Manager, Version , on RedHat or CentOS x86_64
name=Cloudera Manager
baseurl=http://node101.yinzhengjie.org.cn/cm-5.16.1/
gpgkey =https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/RPM-GPG-KEY-cloudera
enabled =
gpgcheck = [root@node110 ~]#

3>.查看yum源的列表

[root@node110 ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id repo name status
cloudera-manager Cloudera Manager
repolist:
[root@node110 ~]#  

4>.测试是否可以正常安装软件

[root@node110 ~]# yum -y install cloudera-manager-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package cloudera-manager-server.x86_64 :5.16.-.cm5161.p0..el7 will be installed
--> Processing Dependency: cloudera-manager-daemons = 5.16. for package: cloudera-manager-server-5.16.-.cm5161.p0..el7.x86_64
--> Running transaction check
---> Package cloudera-manager-daemons.x86_64 :5.16.-.cm5161.p0..el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
cloudera-manager-server x86_64 5.16.-.cm5161.p0..el7 cloudera-manager 8.5 k
Installing for dependencies:
cloudera-manager-daemons x86_64 5.16.-.cm5161.p0..el7 cloudera-manager M Transaction Summary
========================================================================================================================================================================
Install Package (+ Dependent package) Total download size: M
Installed size: M
Downloading packages:
(/): cloudera-manager-server-5.16.-.cm5161.p0..el7.x86_64.rpm | 8.5 kB ::
(/): cloudera-manager-daemons-5.16.-.cm5161.p0..el7.x86_64.rpm | MB ::
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total MB/s | MB ::
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : cloudera-manager-daemons-5.16.-.cm5161.p0..el7.x86_64 /
Installing : cloudera-manager-server-5.16.-.cm5161.p0..el7.x86_64 /
Verifying : cloudera-manager-server-5.16.-.cm5161.p0..el7.x86_64 /
Verifying : cloudera-manager-daemons-5.16.-.cm5161.p0..el7.x86_64 / Installed:
cloudera-manager-server.x86_64 :5.16.-.cm5161.p0..el7 Dependency Installed:
cloudera-manager-daemons.x86_64 :5.16.-.cm5161.p0..el7 Complete!
[root@node110 ~]#

[root@node110 ~]# yum -y install cloudera-manager-server

[root@node110 ~]# yum -y install java
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package jdk1..x86_64 :1.8.0_201-fcs will be installed
--> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
jdk1. x86_64 :1.8.0_201-fcs cloudera-manager M Transaction Summary
========================================================================================================================================================================
Install Package Total download size: M
Installed size: M
Downloading packages:
jdk-8u201-linux-x64.rpm | MB ::
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : :jdk1.-1.8.0_201-fcs.x86_64 /
Unpacking JAR files...
tools.jar...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
Verifying : :jdk1.-1.8.0_201-fcs.x86_64 / Installed:
jdk1..x86_64 :1.8.0_201-fcs Complete!
[root@node110 ~]#

[root@node110 ~]# yum -y install java

[root@node110 ~]# java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) -Bit Server VM (build 25.201-b09, mixed mode)
[root@node110 ~]#

博主推荐阅读文档:

  https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_create_local_parcel_repo.html#download_publish_parcel_repo

   

CM的私有仓库搭建的更多相关文章

  1. 拥抱 Android Studio 之四:Maven 仓库使用与私有仓库搭建

    使用.创造和分享 笔者曾经不思量力的思考过『是什么推动了互联网技术的快速发展?』这种伟大的命题.结论是,除了摩尔定律之外,技术经验的快速积累和广泛分享,也是重要的原因. 有人戏称,『写 Java,首先 ...

  2. docker私有仓库搭建(ubuntu 14.04和centos7)

    最近是在做一个关于docker云化的项目,马上就要开始实战.下午先做了一个私有仓库搭建的实验,先大概做个笔记,有兴趣的蛮看一下吧. 先在所有机子上都安装上docker,我的是两台ubuntu,分别是1 ...

  3. Nexus 私有仓库搭建与 Maven 集成

    Nexus 私有仓库搭建与 Maven 集成 |作者:RexFang |出处:http://www.cnblogs.com/rexfang/ |关于作者:Java 程序员一枚 |版权:本文版权归作者和 ...

  4. CentOS7 Docker私有仓库搭建及删除镜像 【转】

    文章来源:centos7 Docker私有仓库搭建及删除镜像 如果不想用私有镜像库,你可以用docker的库 https://hub.docker.com 环境准备 环境:两个装有Docker 17. ...

  5. Docker 本地私有仓库搭建:

    Docker 本地私有仓库搭建: 创建数据卷目录: mkdir /home/sky/registry 用registry镜像启动容器: docker run -d -p 5000:5000 -v /h ...

  6. Docker学习笔记 — Docker私有仓库搭建

    Docker学习笔记 — Docker私有仓库搭建   目录(?)[-] 环境准备 搭建私有仓库 测试 管理仓库中的镜像 查询 删除 Registry V2   和Mavan的管理一样,Dockers ...

  7. Docker 之registry私有仓库搭建

    Docker 之registry私有仓库搭建 官方提供的私有仓库docker registry用法 https://yeasy.gitbooks.io/docker_practice/reposito ...

  8. Docker私有仓库搭建

    # 环境 系统 Linux 3.10.0-123.9.3.el7.x86_64 CentOS 7.0.1406 (Core) Docker 1.12.0, build 8eab29e 1.获取镜像 私 ...

  9. Maven私有仓库搭建和使用

    下载和安装 下载地址: http://www.sonatype.com/nexus-repository-oss 安装: Linux版的无需安装,直接解压即可,然后进入bin目录下,运行./nexus ...

随机推荐

  1. 使用draw.io桌面版代替visio制作流程图

    前言 draw.io是一款在github上的开源产品,由于需要构建在线文档,需要插入画图类型, 对比多款开源产品,最终选择了draw.io. draw.io图标资源非常的丰富,方便导入图标资源,基本上 ...

  2. matlab学习笔记8 基本绘图命令-基本绘图操作

    一起来学matlab-matlab学习笔记8 基本绘图命令_2基本绘图操作 觉得有用的话,欢迎一起讨论相互学习~Follow Me 参考书籍 <matlab 程序设计与综合应用>张德丰等著 ...

  3. [LeetCode] 489. Robot Room Cleaner 扫地机器人

    Given a robot cleaner in a room modeled as a grid. Each cell in the grid can be empty or blocked. Th ...

  4. Oracle ROWNUM的陷阱

    先抛出一个问题: 我有一张表T,现在我想对表中1/4的记录作UPDATE操作,我的SQL如下: Update t set col1='123' where mod(rownum,4)=1 我能够得到想 ...

  5. 使用objcopy实现将文件编译进执行程序

    一.简介  工作中可能遇到将一个文件编译进执行程序的需求,例如bin文件.jpg文件等等.实现的方法可以使用脚本来将文件内容写入一个新的C源文件数组,达成编译进程序的目的. 现在介绍一种简单.快捷的方 ...

  6. [04]Go设计模式:抽象工厂模式(Abstract Factory Pattern)

    目录 抽象工厂模式 一.简介 二.代码 三. 参考资料 抽象工厂模式 一.简介 抽象工厂模式(Abstract Factory Pattern)是围绕一个超级工厂创建其他工厂.该超级工厂又称为其他工厂 ...

  7. javascript实现每秒执行一次的方法

    javascript实现每秒执行一次的方法 <pre> i=0; function showzhandou() { $('.zhandouresult p').eq(i).fadeIn() ...

  8. Maven 相关知识点解释

    在PC端上面关于Maven的安装等情况我这里就不再复述了,不懂的请自行百度谷歌. 今天聊一下Maven 里面的结构,及相关依赖解释. groupId,artfactId,version,type,cl ...

  9. 1、Ant和分布式介绍

    { 1.Maven 简介 2.配置Maven运行环境 3.Maven项目 4.Ant和Maven项目的简单对比 5.Maven项目之间的关系 6.War类型项目的创建(tomcat插件和资源拷贝插件) ...

  10. LeetCode 150. 逆波兰表达式求值(Evaluate Reverse Polish Notation) 24

    150. 逆波兰表达式求值 150. Evaluate Reverse Polish Notation 题目描述 根据逆波兰表示法,求表达式的值. 有效的运算符包括 +, -, *, /.每个运算对象 ...