安装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>