CentOS Install Nexus

Source: Internet
Author: User
Tags gz file sonatype

1, Nexus download

Nexus official Download, latest version download: nexus-2.4.0-09-bundle.tar.gz

Nexus War Download: Nexus-2.4.0-09.war


Nexus has two kinds of installation implementation, one is the way of war package, put it directly in such as Tomcat can be enabled, there is a source of the way, as an operation or like the source of the way the said Ha. Let's go...



2, Nexus installation

Unzip the tar.gz file:

#cd/home/tools

#tar ZXVF nexus-2.4.0-09-bundle.tar.gz

Move Directory

#mv Nexus-2.4.0-09/usr/local/nexus


3, Nexus Boot

Nexus boot is in the bin directory, first look at the startup/shutdown/restart command, Input command:

#cd/usr/local/nexus/bin

#./nexus

The following options appear:



[Email protected] bin]#./nexus

Usage:./nexus {Console | start | stop | restart | status | dump}


Start Nexus:

#./nexus start



Close Nexus:

#./nexus stop



4, Nexus Verification

After you start the Nexus, enter the address in your native browser: Http://localhost:8081/nexus

650) this.width=650; "src=" http://img.blog.csdn.net/20130527004154533 "style=" margin:0px;padding:0px;border:none; vertical-align:top; "alt=" 20130527004154533 "/>


The page above shows that the configuration Nexus is successful!


In the upper-right corner, click "Log In" to enter the user name and password (default username: admin Password: admin123) login



5. Settings

1. Click on the left repositories to change the Download Remote Index configuration to True for all type is proxy configuration options

If you need the agent to configure the bottom of the override Http proxy Setting on the hook and fill in the Proxy server address and port, last save the settings

2. Then right-click the ReIndex in the list

3. Add your own jar to Nexus

Check 3rd party, Artifact Upload label

GAV Definition Selection GAV Parameters

Fill out Group Artifact version Packaging

Then select the jar package to upload the submission.




Nexus Linux Setup issues

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.


CentOS Install Nexus

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.