nexus启动失败 The nexus service was launched, but failed to start.

安装nexus成功,但是启动的时候就失败了 出现

D:\sifu\nexus-2.12.0-01\bin>nexus.bat start
wrapper  | The nexus service was not running.
wrapper  | Starting the nexus service...
wrapper  | The nexus service was launched, but failed to start.
请按任意键继续. . .

 

第一先检查Java环境是否错误,如果打开cmd java -version出现

则环境是没有错误的

那第二步直接打开到logs cmd进入到黑窗口,输入wrapper.log

1.如果日志出现了系统找不到文件这几个字,那就是说明你在nexus-2.12.0-01\bin\jsw\conf中wrapper.conf错误了。

2.打开这个文件,找到标红处,如果那里显示是wrapper.java.command=java,那就把他改为当前jdk的目录,例如我的是wrapper.java.command=D:\java\jdk-8u251-windows-x64\jdk-8u251-windows-x64\bin\java

Some "most often used" keywords are added to end of this file
# to be used as a "guideline". They are NOT the complete list of
# keywords.

# Set the JSW working directory (used as base for resolving relative paths)
wrapper.working.dir=../../..

# Set the JVM executable
# (modify this to absolute path if you need a Java that is not on the OS path)
wrapper.java.command=java

改好一般都会运行成功的

D:\sifu\nexus-2.12.0-01\bin>nexus.bat start
wrapper  | Starting the nexus service...
wrapper  | Waiting to start...
wrapper  | Waiting to start...
wrapper  | nexus started.

D:\sifu\nexus-2.12.0-01\bin>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值