nexus启动报错:Missing platform binary:../bin/jsw/linux-intel(r)core(tm)[email protected]/wrapper...

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

环境配置

系统:CentOS   64位

JDK:1.8

Nexus:2.12.0

        解压Nexus后,执行./nexus start启动Nexus服务,启动失败。报如下错误:

Missing platform binary: /home/live/nexus-2.12.0-01/bin/../bin/jsw/linux-intel(r)core(tm)[email protected]/wrapper

原因分析

nexus启动报错:Missing platform binary:../bin/jsw/linux-intel(r)core(tm)i7-7700kcpu@4.20ghz-32/wrapper..._第1张图片

 通过查看nexus启动脚本发现出现以上错误信息是因为:找不到可执行的二进制文件,首先通过报错提示的信息与nexus脚本中的信息可以得出:

PIDDIR="bin/jsw/$DIST_OS-$DIST_ARCH-$DIST_BITS"

PIDDIR="bin/jsw/操作系统-操作系统位数-操作位"

$DIST_OS

nexus启动报错:Missing platform binary:../bin/jsw/linux-intel(r)core(tm)i7-7700kcpu@4.20ghz-32/wrapper..._第2张图片

执行命令:uname -s | tr [:upper:] [:lower:] | tr -d [:blank:],可以获取操作系统名称

172701_0YQ6_2289161.png

$DIST_ARCH

$DIST_BITS
执行命令:uname -p | tr [:upper:] [:lower:] | tr -d [:blank:],可以获取操作系统位数

172812_cWeW_2289161.png

nexus启动报错:Missing platform binary:../bin/jsw/linux-intel(r)core(tm)i7-7700kcpu@4.20ghz-32/wrapper..._第3张图片

通过上图可以看到DIST_BITS的默认值是32,这样就明白了,原来是操作系统的位数获取不到,nexus获取到了linux的cpu信息,这样就导致PIDDIR的值为bin/jsw/linux-intel(r)core(tm)[email protected],而在jsw文件夹下没有linux-intel(r)core(tm)[email protected]的文件夹,导致无法运行。

解决步骤

        因为操作系统是linux-x86-64,所以在jsw文件夹下创建linux-intel(r)core(tm)[email protected]的文件夹,然后将linux-x86-64文件夹下的文件复制到linux-intel(r)core(tm)[email protected],然后再重新启动nexus,就ok了。

转载于:https://my.oschina.net/u/2289161/blog/1537787

你可能感兴趣的:(nexus启动报错:Missing platform binary:../bin/jsw/linux-intel(r)core(tm)[email protected]/wrapper...)