1. Download the latest Nexus installation package
: Https://www.sonatype.com/download-oss-sonatype
2, download JDK7,NEXUS2 version support JDK7;NEXUS1 version support JDK6
: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Download the JDK according to your machine selection
3. Installing JDK and NEXUS2
1) rz-y: Upload jdk and Nexus files to Linux server;
2) TAR-ZXVF jdk-7u79-linux-x64.gz: Unzip the JDK
3) TAR-ZXVF nexus-2.14.0-01-bundle.tar.gz: Unzip Nexus
4. Configure Environment variables
1) vi/etc/profile
2) environment variables are as follows:
Export JAVA_HOME=/USR/LOCAL/JDK7
Export JRE_HOME=/USR/LOCAL/JDK7/JRE
Export path= $JAVA _home/bin: $JRE _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/libexport java_home jre_home PATH CLASSPATH
Export maven_home=/usr/local/maven3.0
Export path= $MAVEN _home/bin: $PATH
3) Source/etc/profile: Effective environment variable
4) Check that the JDK is installed successfully
5. Start Nexus
1) CD Nexus installation path/bin
2)./nexus Start Start
3)./nexus Stop Stop
6, installation Nexus2 startup may be reported errors
Error:
1) Warning-not RECOMMENDED to RUN as ROOT
Solve
2) Modify the Nexus under the NEXUS2 installation path/bin
3) found #run_as_user= changed to Run_as_user=root
7. The background log file may appear error when installing NEXUS1.
1) The specific error is not affixed to the general JDK version is not correct
Solve
2) Install JDK6
3) Modify configuration file: Nexus1 installation path/bin/jsw/conf/wrapper.conf
4) Modify the WRAPPER.JAVA.COMMAND=JDK6 installation path/bin/java
8. Launch Nexus Access Http://IP:8081/nexus success
Install Maven under Linux