K8s入門:Docker,kubectl,Kind的安裝

安裝Kind:使用K8s

 

開啓虛擬機

 

關閉Hyper-V

系統設置中搜索“內核隔離”,將其關閉

基於虛擬化的安全設置爲“已禁用”

 

失敗!(依然無法啓動虛擬機)

重連 - 使用 阿里雲服務器

報錯沒有文件

打開連接:Index of /docker-ce/linux/centos/:發現是沒有相關文件鏈接

修改命令地址:

wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum/repos.d/docker-ce.repo

成功!

安裝docker

 

需要依賴,各種解決方案嘗試都不行

失敗!

懷疑是系統原因(不是mac系統、不能用阿里雲服務器、···),還是要用本地虛擬機

於是決定重裝本地vm workstation===》

經過兩次安裝失敗,終於找到正確的 vm workstation15 安裝包及註冊碼。


 

本地kind安裝日誌:

docker安裝,kubectl安裝

[root@localhost ~]# wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo
--2020-02-19 18:26:54--  https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
mirrors.aliyun.com (mirrors.aliyun.com)... 119.96.207.98, 119.96.207.99, 116.211.224.241, ...
100%[======================================>] 2,640       --.-K/s 鐢ㄦ椂 0s      

2020-02-19 18:26:54 (627 MB/s) - 宸蹭繚瀛?鈥?etc/yum.repos.d/docker-ce.repo鈥?[2640/2640])

[root@localhost ~]# yum install -y docker-ce-18.06.1.ce-3.el7
已加載插件:fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
base                                                                                    | 3.6 kB  00:00:00     
docker-ce-stable                                                                        | 3.5 kB  00:00:00     
extras                                                                                  | 2.9 kB  00:00:00     
google                                                                                  | 1.3 kB  00:00:00     
updates                                                                                 | 2.9 kB  00:00:00     
(1/7): docker-ce-stable/x86_64/updateinfo                                               |   55 B  00:00:00     
(2/7): base/7/x86_64/group_gz                                                           | 165 kB  00:00:00     
(3/7): docker-ce-stable/x86_64/primary_db                                               |  38 kB  00:00:00     
(4/7): extras/7/x86_64/primary_db                                                       | 159 kB  00:00:00     
(5/7): base/7/x86_64/primary_db                                                         | 6.0 MB  00:00:01     
(6/7): google/primary                                                                   | 1.7 kB  00:00:00     
(7/7): updates/7/x86_64/primary_db                                                      | 6.7 MB  00:00:03     
Determining fastest mirrors
 * base: mirrors.cn99.com
 * extras: mirrors.cn99.com
 * updates: mirrors.163.com
google                                                                                                     3/3
正在解決依賴關係
--> 正在檢查事務
---> 軟件包 docker-ce.x86_64.0.18.06.1.ce-3.el7 將被 安裝
--> 正在處理依賴關係 container-selinux >= 2.9,它被軟件包 docker-ce-18.06.1.ce-3.el7.x86_64 需要
--> 正在處理依賴關係 libcgroup,它被軟件包 docker-ce-18.06.1.ce-3.el7.x86_64 需要
--> 正在檢查事務
---> 軟件包 container-selinux.noarch.2.2.107-3.el7 將被 安裝
--> 正在處理依賴關係 selinux-policy-targeted >= 3.13.1-216.el7,它被軟件包 2:container-selinux-2.107-3.el7.noarch 需要
--> 正在處理依賴關係 selinux-policy-base >= 3.13.1-216.el7,它被軟件包 2:container-selinux-2.107-3.el7.noarch 需要
--> 正在處理依賴關係 selinux-policy >= 3.13.1-216.el7,它被軟件包 2:container-selinux-2.107-3.el7.noarch 需要
--> 正在處理依賴關係 policycoreutils-python,它被軟件包 2:container-selinux-2.107-3.el7.noarch 需要
---> 軟件包 libcgroup.x86_64.0.0.41-21.el7 將被 安裝
--> 正在檢查事務
---> 軟件包 policycoreutils-python.x86_64.0.2.5-33.el7 將被 安裝
--> 正在處理依賴關係 policycoreutils = 2.5-33.el7,它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 setools-libs >= 3.3.8-4,它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 libsemanage-python >= 2.5-14,它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 audit-libs-python >= 2.1.3-4,它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 python-IPy,它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 libqpol.so.1(VERS_1.4)(64bit),它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 libqpol.so.1(VERS_1.2)(64bit),它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 libapol.so.4(VERS_4.0)(64bit),它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 checkpolicy,它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 libqpol.so.1()(64bit),它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
--> 正在處理依賴關係 libapol.so.4()(64bit),它被軟件包 policycoreutils-python-2.5-33.el7.x86_64 需要
---> 軟件包 selinux-policy.noarch.0.3.13.1-166.el7_4.5 將被 升級
---> 軟件包 selinux-policy.noarch.0.3.13.1-252.el7_7.6 將被 更新
--> 正在處理依賴關係 libsemanage >= 2.5-13,它被軟件包 selinux-policy-3.13.1-252.el7_7.6.noarch 需要
---> 軟件包 selinux-policy-targeted.noarch.0.3.13.1-166.el7_4.5 將被 升級
---> 軟件包 selinux-policy-targeted.noarch.0.3.13.1-252.el7_7.6 將被 更新
--> 正在檢查事務
---> 軟件包 audit-libs-python.x86_64.0.2.8.5-4.el7 將被 安裝
--> 正在處理依賴關係 audit-libs(x86-64) = 2.8.5-4.el7,它被軟件包 audit-libs-python-2.8.5-4.el7.x86_64 需要
---> 軟件包 checkpolicy.x86_64.0.2.5-8.el7 將被 安裝
---> 軟件包 libsemanage.x86_64.0.2.5-8.el7 將被 升級
---> 軟件包 libsemanage.x86_64.0.2.5-14.el7 將被 更新
--> 正在處理依賴關係 libsepol >= 2.5-10,它被軟件包 libsemanage-2.5-14.el7.x86_64 需要
--> 正在處理依賴關係 libselinux >= 2.5-14,它被軟件包 libsemanage-2.5-14.el7.x86_64 需要
---> 軟件包 libsemanage-python.x86_64.0.2.5-14.el7 將被 安裝
---> 軟件包 policycoreutils.x86_64.0.2.5-17.1.el7 將被 升級
---> 軟件包 policycoreutils.x86_64.0.2.5-33.el7 將被 更新
--> 正在處理依賴關係 libselinux-utils >= 2.5-14,它被軟件包 policycoreutils-2.5-33.el7.x86_64 需要
---> 軟件包 python-IPy.noarch.0.0.75-6.el7 將被 安裝
---> 軟件包 setools-libs.x86_64.0.3.3.8-4.el7 將被 安裝
--> 正在檢查事務
---> 軟件包 audit-libs.x86_64.0.2.7.6-3.el7 將被 升級
--> 正在處理依賴關係 audit-libs(x86-64) = 2.7.6-3.el7,它被軟件包 audit-2.7.6-3.el7.x86_64 需要
---> 軟件包 audit-libs.x86_64.0.2.8.5-4.el7 將被 更新
---> 軟件包 libselinux.x86_64.0.2.5-11.el7 將被 升級
--> 正在處理依賴關係 libselinux(x86-64) = 2.5-11.el7,它被軟件包 libselinux-python-2.5-11.el7.x86_64 需要
---> 軟件包 libselinux.x86_64.0.2.5-14.1.el7 將被 更新
---> 軟件包 libselinux-utils.x86_64.0.2.5-11.el7 將被 升級
---> 軟件包 libselinux-utils.x86_64.0.2.5-14.1.el7 將被 更新
---> 軟件包 libsepol.x86_64.0.2.5-6.el7 將被 升級
---> 軟件包 libsepol.x86_64.0.2.5-10.el7 將被 更新
--> 正在檢查事務
---> 軟件包 audit.x86_64.0.2.7.6-3.el7 將被 升級
---> 軟件包 audit.x86_64.0.2.8.5-4.el7 將被 更新
---> 軟件包 libselinux-python.x86_64.0.2.5-11.el7 將被 升級
---> 軟件包 libselinux-python.x86_64.0.2.5-14.1.el7 將被 更新
--> 解決依賴關係完成

依賴關係解決

===============================================================================================================
 Package                          架構            版本                         源                         大小
===============================================================================================================
正在安裝:
 docker-ce                        x86_64          18.06.1.ce-3.el7             docker-ce-stable           41 M
爲依賴而安裝:
 audit-libs-python                x86_64          2.8.5-4.el7                  base                       76 k
 checkpolicy                      x86_64          2.5-8.el7                    base                      295 k
 container-selinux                noarch          2:2.107-3.el7                extras                     39 k
 libcgroup                        x86_64          0.41-21.el7                  base                       66 k
 libsemanage-python               x86_64          2.5-14.el7                   base                      113 k
 policycoreutils-python           x86_64          2.5-33.el7                   base                      457 k
 python-IPy                       noarch          0.75-6.el7                   base                       32 k
 setools-libs                     x86_64          3.3.8-4.el7                  base                      620 k
爲依賴而更新:
 audit                            x86_64          2.8.5-4.el7                  base                      256 k
 audit-libs                       x86_64          2.8.5-4.el7                  base                      102 k
 libselinux                       x86_64          2.5-14.1.el7                 base                      162 k
 libselinux-python                x86_64          2.5-14.1.el7                 base                      235 k
 libselinux-utils                 x86_64          2.5-14.1.el7                 base                      151 k
 libsemanage                      x86_64          2.5-14.el7                   base                      151 k
 libsepol                         x86_64          2.5-10.el7                   base                      297 k
 policycoreutils                  x86_64          2.5-33.el7                   base                      916 k
 selinux-policy                   noarch          3.13.1-252.el7_7.6           updates                   492 k
 selinux-policy-targeted          noarch          3.13.1-252.el7_7.6           updates                   7.0 M

事務概要
===============================================================================================================
安裝  1 軟件包 (+ 8 依賴軟件包)
升級           ( 10 依賴軟件包)

總下載量:52 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/19): audit-libs-2.8.5-4.el7.x86_64.rpm                                               | 102 kB  00:00:00     
(2/19): audit-2.8.5-4.el7.x86_64.rpm                                                    | 256 kB  00:00:00     
(3/19): audit-libs-python-2.8.5-4.el7.x86_64.rpm                                        |  76 kB  00:00:00     
(4/19): checkpolicy-2.5-8.el7.x86_64.rpm                                                | 295 kB  00:00:00     
(5/19): libcgroup-0.41-21.el7.x86_64.rpm                                                |  66 kB  00:00:00     
(6/19): libselinux-2.5-14.1.el7.x86_64.rpm                                              | 162 kB  00:00:00     
(7/19): libselinux-utils-2.5-14.1.el7.x86_64.rpm                                        | 151 kB  00:00:00     
(8/19): libselinux-python-2.5-14.1.el7.x86_64.rpm                                       | 235 kB  00:00:00     
(9/19): libsemanage-2.5-14.el7.x86_64.rpm                                               | 151 kB  00:00:00     
(10/19): libsemanage-python-2.5-14.el7.x86_64.rpm                                       | 113 kB  00:00:00     
(11/19): container-selinux-2.107-3.el7.noarch.rpm                                       |  39 kB  00:00:00     
(12/19): libsepol-2.5-10.el7.x86_64.rpm                                                 | 297 kB  00:00:00     
(13/19): policycoreutils-2.5-33.el7.x86_64.rpm                                          | 916 kB  00:00:00     
(14/19): policycoreutils-python-2.5-33.el7.x86_64.rpm                                   | 457 kB  00:00:00     
(15/19): python-IPy-0.75-6.el7.noarch.rpm                                               |  32 kB  00:00:00     
(16/19): setools-libs-3.3.8-4.el7.x86_64.rpm                                            | 620 kB  00:00:00     
(17/19): selinux-policy-3.13.1-252.el7_7.6.noarch.rpm                                   | 492 kB  00:00:00     
(18/19): selinux-policy-targeted-3.13.1-252.el7_7.6.noarch.rpm                          | 7.0 MB  00:00:01     
warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-18.06.1.ce-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
docker-ce-18.06.1.ce-3.el7.x86_64.rpm 的公鑰尚未安裝
(19/19): docker-ce-18.06.1.ce-3.el7.x86_64.rpm                                          |  41 MB  00:00:09     
---------------------------------------------------------------------------------------------------------------
總計                                                                           5.3 MB/s |  52 MB  00:00:09     
從 https://mirrors.aliyun.com/docker-ce/linux/centos/gpg 檢索密鑰
導入 GPG key 0x621E9F35:
 用戶ID     : "Docker Release (CE rpm) <[email protected]>"
 指紋       : 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
 來自       : https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在更新    : libsepol-2.5-10.el7.x86_64                                                                1/29 
  正在更新    : libselinux-2.5-14.1.el7.x86_64                                                            2/29 
  正在更新    : audit-libs-2.8.5-4.el7.x86_64                                                             3/29 
  正在更新    : libsemanage-2.5-14.el7.x86_64                                                             4/29 
  正在更新    : libselinux-utils-2.5-14.1.el7.x86_64                                                      5/29 
  正在更新    : policycoreutils-2.5-33.el7.x86_64                                                         6/29 
  正在更新    : selinux-policy-3.13.1-252.el7_7.6.noarch                                                  7/29 
  正在安裝    : libcgroup-0.41-21.el7.x86_64                                                              8/29 
  正在更新    : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch                                         9/29 
  正在安裝    : libsemanage-python-2.5-14.el7.x86_64                                                     10/29 
  正在安裝    : audit-libs-python-2.8.5-4.el7.x86_64                                                     11/29 
  正在安裝    : setools-libs-3.3.8-4.el7.x86_64                                                          12/29 
  正在更新    : libselinux-python-2.5-14.1.el7.x86_64                                                    13/29 
  正在安裝    : python-IPy-0.75-6.el7.noarch                                                             14/29 
  正在安裝    : checkpolicy-2.5-8.el7.x86_64                                                             15/29 
  正在安裝    : policycoreutils-python-2.5-33.el7.x86_64                                                 16/29 
  正在安裝    : 2:container-selinux-2.107-3.el7.noarch                                                   17/29 
  正在安裝    : docker-ce-18.06.1.ce-3.el7.x86_64                                                        18/29 
  正在更新    : audit-2.8.5-4.el7.x86_64                                                                 19/29 
  清理        : selinux-policy-targeted-3.13.1-166.el7_4.5.noarch                                        20/29 
  清理        : selinux-policy-3.13.1-166.el7_4.5.noarch                                                 21/29 
  清理        : policycoreutils-2.5-17.1.el7.x86_64                                                      22/29 
  清理        : libsemanage-2.5-8.el7.x86_64                                                             23/29 
  清理        : libselinux-utils-2.5-11.el7.x86_64                                                       24/29 
  清理        : libselinux-python-2.5-11.el7.x86_64                                                      25/29 
  清理        : libselinux-2.5-11.el7.x86_64                                                             26/29 
  清理        : audit-2.7.6-3.el7.x86_64                                                                 27/29 
  清理        : audit-libs-2.7.6-3.el7.x86_64                                                            28/29 
  清理        : libsepol-2.5-6.el7.x86_64                                                                29/29 
  驗證中      : 2:container-selinux-2.107-3.el7.noarch                                                    1/29 
  驗證中      : policycoreutils-2.5-33.el7.x86_64                                                         2/29 
  驗證中      : audit-libs-2.8.5-4.el7.x86_64                                                             3/29 
  驗證中      : checkpolicy-2.5-8.el7.x86_64                                                              4/29 
  驗證中      : selinux-policy-3.13.1-252.el7_7.6.noarch                                                  5/29 
  驗證中      : python-IPy-0.75-6.el7.noarch                                                              6/29 
  驗證中      : setools-libs-3.3.8-4.el7.x86_64                                                           7/29 
  驗證中      : policycoreutils-python-2.5-33.el7.x86_64                                                  8/29 
  驗證中      : audit-2.8.5-4.el7.x86_64                                                                  9/29 
  驗證中      : docker-ce-18.06.1.ce-3.el7.x86_64                                                        10/29 
  驗證中      : libsemanage-python-2.5-14.el7.x86_64                                                     11/29 
  驗證中      : libsemanage-2.5-14.el7.x86_64                                                            12/29 
  驗證中      : libsepol-2.5-10.el7.x86_64                                                               13/29 
  驗證中      : audit-libs-python-2.8.5-4.el7.x86_64                                                     14/29 
  驗證中      : libselinux-python-2.5-14.1.el7.x86_64                                                    15/29 
  驗證中      : libselinux-utils-2.5-14.1.el7.x86_64                                                     16/29 
  驗證中      : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch                                        17/29 
  驗證中      : libselinux-2.5-14.1.el7.x86_64                                                           18/29 
  驗證中      : libcgroup-0.41-21.el7.x86_64                                                             19/29 
  驗證中      : libselinux-utils-2.5-11.el7.x86_64                                                       20/29 
  驗證中      : libselinux-2.5-11.el7.x86_64                                                             21/29 
  驗證中      : libsepol-2.5-6.el7.x86_64                                                                22/29 
  驗證中      : audit-libs-2.7.6-3.el7.x86_64                                                            23/29 
  驗證中      : selinux-policy-targeted-3.13.1-166.el7_4.5.noarch                                        24/29 
  驗證中      : audit-2.7.6-3.el7.x86_64                                                                 25/29 
  驗證中      : policycoreutils-2.5-17.1.el7.x86_64                                                      26/29 
  驗證中      : libsemanage-2.5-8.el7.x86_64                                                             27/29 
  驗證中      : selinux-policy-3.13.1-166.el7_4.5.noarch                                                 28/29 
  驗證中      : libselinux-python-2.5-11.el7.x86_64                                                      29/29 

已安裝:
  docker-ce.x86_64 0:18.06.1.ce-3.el7                                                                          

作爲依賴被安裝:
  audit-libs-python.x86_64 0:2.8.5-4.el7               checkpolicy.x86_64 0:2.5-8.el7                          
  container-selinux.noarch 2:2.107-3.el7               libcgroup.x86_64 0:0.41-21.el7                          
  libsemanage-python.x86_64 0:2.5-14.el7               policycoreutils-python.x86_64 0:2.5-33.el7              
  python-IPy.noarch 0:0.75-6.el7                       setools-libs.x86_64 0:3.3.8-4.el7                       

作爲依賴被升級:
  audit.x86_64 0:2.8.5-4.el7                        audit-libs.x86_64 0:2.8.5-4.el7                           
  libselinux.x86_64 0:2.5-14.1.el7                  libselinux-python.x86_64 0:2.5-14.1.el7                   
  libselinux-utils.x86_64 0:2.5-14.1.el7            libsemanage.x86_64 0:2.5-14.el7                           
  libsepol.x86_64 0:2.5-10.el7                      policycoreutils.x86_64 0:2.5-33.el7                       
  selinux-policy.noarch 0:3.13.1-252.el7_7.6        selinux-policy-targeted.noarch 0:3.13.1-252.el7_7.6       

完畢!
[root@localhost ~]# systemctl start docker && systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@localhost ~]# docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:23:03 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:25:29 2018
  OS/Arch:          linux/amd64
  Experimental:     false
[root@localhost ~]# cat > /etc/yum.repos.d/k8s.repo << EOF
> [kubernetes]
> 
> name=kubernetes
> 
> baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
> 
> enabled=1
> 
> gpgcheck=0
> 
> repo_gpgcheck=0
> 
> gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
> 
> EOF
[root@localhost ~]# yum install -y kubectl-1.16.3
已加載插件:fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
kubernetes                                                                              | 1.4 kB  00:00:00     
kubernetes/primary                                                                      |  64 kB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.cn99.com
 * updates: mirrors.163.com
kubernetes                                                                                             469/469
正在解決依賴關係
--> 正在檢查事務
---> 軟件包 kubectl.x86_64.0.1.16.3-0 將被 安裝
--> 解決依賴關係完成

依賴關係解決

===============================================================================================================
 Package                  架構                    版本                       源                           大小
===============================================================================================================
正在安裝:
 kubectl                  x86_64                  1.16.3-0                   kubernetes                   10 M

事務概要
===============================================================================================================
安裝  1 軟件包

總下載量:10 M
安裝大小:45 M
Downloading packages:
fd6465355a85b8ddbc0b2e7cb073e3a40160c7c359576b86e9b8eca0a2d7805b-kubectl-1.16.3-0.x86_6 |  10 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安裝    : kubectl-1.16.3-0.x86_64                                                                    1/1 
  驗證中      : kubectl-1.16.3-0.x86_64                                                                    1/1 

已安裝:
  kubectl.x86_64 0:1.16.3-0                                                                                    

完畢!
[root@localhost ~]# kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3", GitCommit:"b3cbbae08ec52a7fc73d334838e18d17e8512749", GitTreeState:"clean", BuildDate:"2019-11-13T11:23:11Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
[root@localhost ~]# 

kind 安裝

執行curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.5.1/kind-linux-amd64

報錯:等待網絡重置···

於是在瀏覽器上手動下載git資源文件到本地,並上傳到虛擬機 ===》

[root@localhost ~]# ll
總用量 40716
-rw-------. 1 root root     1241 11月 13 2017 anaconda-ks.cfg
-rw-r--r--. 1 root root    26380 11月 14 2017 easy-rsa-2.2.2-1.el7.noarch.rpm
-rw-r--r--. 1 root root 41091433 2月  19 19:43 kind-linux-amd64
-rw-r--r--. 1 root root    37186 10月 30 2017 liblz4-1.8.0-alt1.x86_64.rpm
-rw-r--r--. 1 root root   466764 11月 14 2017 openvpn-2.4.4-1.el7.x86_64.rpm
-rw-r--r--. 1 root root    57220 11月 14 2017 pkcs11-helper-1.11-3.el7.x86_64.rpm
[root@localhost ~]# mv kind-linux-amd64 kind
[root@localhost ~]# ll
總用量 40716
-rw-------. 1 root root     1241 11月 13 2017 anaconda-ks.cfg
-rw-r--r--. 1 root root    26380 11月 14 2017 easy-rsa-2.2.2-1.el7.noarch.rpm
-rw-r--r--. 1 root root 41091433 2月  19 19:43 kind
-rw-r--r--. 1 root root    37186 10月 30 2017 liblz4-1.8.0-alt1.x86_64.rpm
-rw-r--r--. 1 root root   466764 11月 14 2017 openvpn-2.4.4-1.el7.x86_64.rpm
-rw-r--r--. 1 root root    57220 11月 14 2017 pkcs11-helper-1.11-3.el7.x86_64.rpm
[root@localhost ~]# chmod +x ./kind
[root@localhost ~]# mv ./kind /usr/local/bin/kind
mv:是否覆蓋"/usr/local/bin/kind"? y
[root@localhost ~]# kind version
v0.5.1
[root@localhost ~]# 

完成!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章