Create a Nexus under Linux

Source: Internet
Author: User

Create a Nexus under Linux

To install 3 things, then configure the following:

1. JDK

2. Maven

3. Nexus

Then configure

1. Installation of JDK

Download the JDK installation package in RPM format and install it

installation program

#rpm-IVH jdk-1_5_0_02-linux-i586.rpm

Installation protocol, etc., press accept.

Linux installation JDK Step 2. Set environment variables.

#vi/etc/profile

On the last side, add

#set Java Environment

Java_home=/usr/java/jdk-1_5_0_02

Classpath=.: $JAVA _home/lib.tools.jar

Path= $JAVA _home/bin: $PATH

Export Java_home CLASSPATH PATH

2. MAVEN Installation

1. First download the installation file to MAVEN official website, the latest version is 3.0.3, download file is apache-maven-3.0.3-bin.tar.gz, download can use wget command;

2. Go to the Download folder, locate the downloaded file, and run the following command to unzip

TAR-XVF apache-maven-2.2.1-bin.tar.gz


The extracted folder is named apache-maven-3.0.3

3. Use the MV command to copy the apache-maven-3.0.3 folder to the folder you specified, such as/usr/local/

MV-RF apache-maven-3.0.3/usr/local/


4. Configure the environment variables, edit the/etc/profile file, add the following code

maven_home=/usr/local/apache-maven-3.0.3
Export Maven_home
Export Path=${path}:${maven_home}/bin


5. Save the file and run the following command to make the environment variable effective

Source/etc/profile


6. In the console enter the following command, if you can see the MAVEN related version information, the MAVEN has been installed successfully

Mvn-v

3. Nexus Installation

Unzip, set environment variables, and start Nexus/nexus-2.5.0-04/bin/jsw/linux-x86-32/nexus.

Configuration

Use admin,admin123 landing on the http://192.168.20.111:8081/nexus/index.html to build.

Create a Nexus under Linux

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.