One, recently set up a nexus, downloaded from the official website is always reported 503 server invalid, is helpless, finally found on the internet can be used in the collection up, here to share with you
: Http://pan.baidu.com/s/1kT3UJHl
Second, after the decompression will have two folders, nexus-2.6.0-05 and Sonatype-work, we enter the first folder of the bin directory to start the Nexus.
1, enter the startup directory, start
CD nexus-2.6.0-05/bin/
./nexus Start
2, this time prompt:
****************************************
Warning–not RECOMMENDED to RUN as ROOT
****************************************
If you insist running as root and then set the environment variable run_as_user=root before running this script.
The idea is to configure export run_as_user=root in the environment, temporarily configure
At the command line, enter:
Export Run_as_user=root
And then execute it, no more prompts.
./nexus Start
3, can also be permanently configured inside the system
Vi/etc/profile Join Export Run_as_user=root
Third, after starting to view the log (log path: nexus/logs)
Reported
Wrapper | Reloading Wrapper configuration ...
Wrapper | Launching a JVM ...
Wrapper | JVM exited while loading the application.
JVM 5 | Exception in thread "main" Java.lang.unsupportedclassversionerror:org/sonatype/nexus/bootstrap/jsw/jswlauncher: Unsupported Major.minor version 51.0
JVM 5 | At Java.lang.ClassLoader.defineClass1 (Native Method)
JVM 5 | At Java.lang.ClassLoader.defineClassCond (classloader.java:631)
JVM 5 | At Java.lang.ClassLoader.defineClass (classloader.java:615)
JVM 5 | At Java.security.SecureClassLoader.defineClass (secureclassloader.java:141)
JVM 5 | At Java.net.URLClassLoader.defineClass (urlclassloader.java:283)
JVM 5 | At java.net.urlclassloader.access$000 (urlclassloader.java:58)
JVM 5 | At Java.net.urlclassloader$1.run (urlclassloader.java:197)
JVM 5 | At java.security.AccessController.doPrivileged (Native Method)
JVM 5 | At Java.net.URLClassLoader.findClass (urlclassloader.java:190)
JVM 5 | At Java.lang.ClassLoader.loadClass (classloader.java:306)
JVM 5 | At Sun.misc.launcher$appclassloader.loadclass (launcher.java:301)
JVM 5 | At Java.lang.ClassLoader.loadClass (classloader.java:247)
JVM 5 | Could not find the main class:org.sonatype.nexus.bootstrap.jsw.JswLauncher. Program would exit.
Wrapper | There were 5 failed launches in a row, each lasting less than. Giving up.
Wrapper | There may a configuration problem:please check the logs.
Wrapper | <--Wrapper Stopped
Online explanation is to JAVA7. Alas only the next low version.
Four, re-nexus-oss-webapp-1.9.2.4-bundle.zip version of the.
Unzip the/opt/nexus1924/bin/jsw/linux-x86-64 directory to start the access.
Http://192.168.13.31:8081/nexus
Default Administrator username/password: admin/admin123
V. References
http://blog.youxey.com/archives/293.html Linux/centos installing maven private warehouse Nexus
http://blog.csdn.net/shandian534/article/details/8987349 Nexus Installation and mating
http://snowolf.iteye.com/blog/1605811 maven Scattered notes-configure Nexus
Http://www.blogjava.net/javalinjx/archive/2013/08/21/403110.html Linux system to build MAVEN Nexus Service Chapter
Http://wenku.baidu.com/view/a9a0618acc22bcd126ff0c4a.html Nexus Getting Started Guide (graphic)
Original source: http://blog.csdn.net/cuker919/article/details/12052565
Nexus Linux Setup issues