文章目录
①环境准备
'//前期优化'
[root@localhost ~]# hostnamectl set-hostname harbor
[root@localhost ~]# su
[root@harbor ~]# echo "192.168.126.11 master
> 192.168.126.12 node01
> 192.168.126.13 node02
> 192.168.126.14 harbor" >> /etc/hosts
[root@harbor ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.126.11 master
192.168.126.12 node01
192.168.126.13 node02
192.168.126.14 harbor '//去另外三台机器添加harbor'