nexus注册成Window服务无法启动问题解决

 

一、注册成Window服务

>cd  %NEXUS_HOME%\bin
>nexus.bat install

 

二、启动服务

>net start nexus

The nexus service is starting.
The nexus service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

 

三、logs\wrapper.log 日志

wrapper  | --> Wrapper Started as Service
wrapper  | Launching a JVM...
wrapper  | Unable to execute Java command.  The system cannot find the file specified. (0x2)
wrapper  |     "java" -Djava.library.path="bin/jsw/lib" -classpath "bin/jsw/lib/wrapper-3.2.3.jar;./lib/appcontext-3.2.jar;./lib/javax.servlet-api-3.0.1.jar;./lib/jetty-continuation-8.1.3.v20120416.jar;./lib/jetty-deploy-8.1.3.v20120416.jar;./lib/jetty-http-8.1.3.v20120416.jar;./lib/jetty-io-8.1.3.v20120416.jar;./lib/jetty-jmx-8.1.3.v20120416.jar;./lib/jetty-rewrite-8.1.3.v20120416.jar;./lib/jetty-security-8.1.3.v20120416.jar;./lib/jetty-server-8.1.3.v20120416.jar;./lib/jetty-servlet-8.1.3.v20120416.jar;./lib/jetty-util-8.1.3.v20120416.jar;./lib/jetty-webapp-8.1.3.v20120416.jar;./lib/jetty-xml-8.1.3.v20120416.jar;./lib/logback-classic-1.0.0.jar;./lib/logback-core-1.0.0.jar;./lib/nexus-bootstrap-2.2-01.jar;./lib/nexus-logging-extras-appender-2.2-01.jar;./lib/plexus-interpolation-1.14.jar;./lib/sisu-jetty8-1.3.jar;./lib/slf4j-api-1.6.4.jar;./conf/" -Dwrapper.key="MbUTaZZd_Yf2mUp2" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=176 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.sonatype.nexus.bootstrap.jsw.JswLauncher ./conf/jetty.xml
wrapper  | Critical error: wait for JVM process failed

 

四、问题解决:修改环境变量设置

       1. 设置环境变量:JAVA_HOME=D:\Java\jdk1.7.0_25_x64

       2. 设置环境变量:PATH=%JAVA_HOME%\bin;

 

注意:JAVA_HOME和PATH两个环境变量必须设置成系统变量,而非用户变量nexus注册成Window服务无法启动问题解决_第1张图片
 

五、启动服务

>net start nexus
The nexus service is starting...........
The nexus service was started successfully.


六、浏览器打开地址

       http://localhost:8081/nexus/index.htmlnexus注册成Window服务无法启动问题解决_第2张图片
 

你可能感兴趣的:(window)