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