Home  >  Q&A  >  body text

linux - 远程SSH ,tar解压 Process exited with status 2

golang 是使用ROOT用户登录的使用ssh远程解压文件的时候报错Process exited with status 2

在文件中.已给最高权限.

远程使用ls /tmp/ 也能看到压缩包

tar的绝对路径也使用了...

求各位大腿解救...

伊谢尔伦伊谢尔伦2742 days ago775

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 16:27:02

    Oops, I was confused just now. tar -zxvf xxx.tag.gz -C /mysql Just add -C to specify the directory.
    At first I thought it was a problem with the package usage. I tried it and it was fine. Then I saw that your shell didn’t add -C.

    reply
    0
  • Cancelreply