wrapper | --> Wrapper Started as Daemon
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2015-05-04 14:48:46 INFO [WrapperListener_start_runner] - org.sonatype.nexus.bootstrap.jsw.JswLauncher - Starting with arguments: [./conf/jetty.xml]
jvm 1 | 2015-05-04 14:48:46 INFO [WrapperListener_start_runner] - org.sonatype.nexus.bootstrap.jsw.JswLauncher - JVM ID: 1, JVM PID: 17601, Wrapper PID: 17599, User: root
jvm 1 | 2015-05-04 14:48:46 INFO [WrapperListener_start_runner] - org.sonatype.nexus.bootstrap.jsw.JswLauncher - Current directory: /apps/svr/nexus/nexus-2.6.3-01
jvm 1 | Error in WrapperListener.start callback. java.lang.StackOverflowError
jvm 1 | java.lang.StackOverflowError
jvm 1 | at org.sonatype.appcontext.internal.HierarchicalMap.get(HierarchicalMap.java:131)
该异常是由JDK版本引起的,从1.8换到1.7,异常消失。
2.设置环境变量Path ;D:\nexus-2.0.5-bundle\nexus-2.0.5\bin
3.修改nexus-2.0.5\bin\jsw\conf下的配置文件wrapper.conf
wrapper.java.command=${your jdk path}\java 例如
wrapper.java.command=C:\Java\jdk1.6.0_07\bin\java
3.启动命令窗口
输入nexus install 进行安装nexus服务(安装成功后可以在服务里可以看到)
输入nexus start 启动服务
4.输入http://localhost:8081/nexus
默认username:admin pwd:admin123
如果端口被占用,进入安装目录 :E:\software\nexus-latest-bundle\nexus-2.6.4-02\conf
编辑:nexus.properties
#
# Sonatype Nexus (TM) Open Source Version
# Copyright (c) 2007-2013 Sonatype, Inc.
# All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
#
# This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
# which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
#
# Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
# of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
# Eclipse Foundation. All other trademarks are the property of their respective owners.
#
# Sonatype Nexus
# ==============
# This is the most basic configuration of Nexus.
# Jetty section
application-port=8082
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus
# Nexus section
nexus-work=${bundleBasedir}/../sonatype-work/nexus
runtime=${bundleBasedir}/nexus/WEB-INF
修改端口为8082
application-port=8082
安装详细参考文档: