linux - 远程SSH ,tar解压 Process exited with status 2
本文介绍了linux - 远程SSH ,tar解压 Process exited with status 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
golang 是使用ROOT用户登录的使用ssh远程解压文件的时候报错Process exited with status 2
在文件中.已给最高权限.
远程使用ls /tmp/ 也能看到压缩包
tar的绝对路径也使用了...
求各位大腿解救...
解决方案
哎哟,刚我也糊涂了。tar -zxvf xxx.tag.gz -C /mysql 加上-C指定目录就可以了。
开始我以为包用法问题,我试了一下没问题,然后一看你的shell没加-C啊。
这篇关于linux - 远程SSH ,tar解压 Process exited with status 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文