/bin/sh: /usr/jdk64/jdk1.7.0_45/bin/java: 无法执行二进制文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25841222/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 01:15:44  来源:igfitidea点击:

/bin/sh: /usr/jdk64/jdk1.7.0_45/bin/java: cannot execute binary file

javaambari

提问by Madura Dissanayake

I installed Ambari server successfully, But when I try to start that server it says,

我成功安装了 Ambari 服务器,但是当我尝试启动该服务器时,它说,

/bin/sh: /usr/jdk64/jdk1.7.0_45/bin/java: cannot execute binary file

So could you please help me to resolve this.

所以你能帮我解决这个问题吗?

Thank You.

谢谢你。

回答by ponomandr

It might be wrong architecture. You might be running java x64 on x32 machine.

这可能是错误的架构。您可能在 x32 机器上运行 java x64。

As @G.S mentioned in comments the same problem was disscussed at superuser

正如@GS 在评论中提到的,超级用户讨论了同样的问题