[root@master ~]# scp ~/zookeeper root@192.168.1.20:/root/zookeeper
在linux输入以上内容,报以下错误
/root/zookeeper: not a regular file
解决方案:
使用 -r 递归地复制整个目录
所以在scp后加上-r
[root@master ~]# scp -r ~/zookeeper root@192.168.1.20:/root/zookeeper
然后就好了
完!