标签:host bsp col word rsh color usr div 解决
1. 用 win10 自带的 Windows PowerShell 工具,上传文件到 linux ,命令:
PS C:\Users\Administrator\Downloads> scp -P 22 ./elasticsearch-7.9.3-linux-x86_64.tar.gz qing@192.168.204.128:/usr/local/elasticsearch
报错:
scp: /usr/local/elasticsearch/elasticsearch-7.9.3-linux-x86_64.tar.gz: Permission denied
诊断为目的路径(A ——> B,B 处的文件路径权限不够),解决办法是赋权限,执行命令:
[qing@localhost local]$ pwd /usr/local [qing@localhost local]$ ls bin elasticsearch etc games include lib lib64 libexec sbin share src [qing@localhost local]$ sudo chmod 777 elasticsearch/
再次执行发送命令:
PS C:\Users\Administrator\Downloads> scp -P 22 ./elasticsearch-7.9.3-linux-x86_64.tar.gz qing@192.168.204.128:/usr/local/elasticsearch qing@192.168.204.128‘s password: elasticsearch-7.9.3-linux-x86_64.tar.gz 100% 292MB 93.9MB/s 00:03
成功发送!
2.
标签:host bsp col word rsh color usr div 解决
原文地址:https://www.cnblogs.com/bridgestone29-08/p/13905801.html