1.下载harbor安装程序

    1. [root@localhost ~]# wget -c https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.2-rc1.tgz
    2. --2022-04-21 16:35:34-- https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.2-rc1.tgz
    3. 正在解析主机 storage.googleapis.com (storage.googleapis.com)... 142.251.43.16, 172.217.163.48, 172.217.160.80, ...
    4. 正在连接 storage.googleapis.com (storage.googleapis.com)|142.251.43.16|:443... 已连接。
    5. 已发出 HTTP 请求,正在等待回应... 200 OK
    6. 长度:570172676 (544M) [application/x-tar]
    7. 正在保存至: harbor-offline-installer-v1.8.2-rc1.tgz
    8. 100%[========================================================>] 570,172,676 548KB/s 用时 32m 36s
    9. 2022-04-21 17:08:10 (285 KB/s) - 已保存 harbor-offline-installer-v1.8.2-rc1.tgz [570172676/570172676])
    10. [root@localhost ~]# tar xvf harbor-offline-installer-v1.8.2-rc1.tgz -C /usr/local/
    11. harbor/harbor.v1.8.2.tar.gz
    12. harbor/prepare
    13. harbor/LICENSE
    14. harbor/install.sh
    15. harbor/harbor.yml

    2.配置Harbor参数文件

    1. [root@localhost ~]# vim /usr/local/harbor/harbor.cfg
    2. [root@localhost ~]# cat /usr/local/harbor/harbor.cfg
    3. hostname=192.168.20.22

    3.