SCP远程复制
- 配置主机映射
# 添加主机映射
vim /etc/hosts
如下:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.2.80 zk-node01
192.168.2.81 zk-node02
192.168.2.82 zk-node03
192.168.2.83 zk-node04
- 递归复制文件夹
scp -r ./* root@node02:/test_dir