Sonatype Nexus OSS 3.2.1 Installation __centos

Source: Internet
Author: User
Tags sonatype sonatype nexus

Sonatype Nexus OSS 3.2.1 is one of the world's leading warehouse management systems, and this time the main use of the Maven warehouse function
The installation environment is CentOS 7 64-bit 1. First download the installation JDK

When writing this article, the latest version is jdk-8u121-linux-x64.tar.gz 2. Install Java JDK

1. Extract JDK
tar-zxvf jdk-8u121-linux-x64.tar.gz 
2. Move to the specified path
mv jdk-8u121-linux-x64/usr/local 
3. Edit Environment variables
Vi/etc/profile     
writes the following configuration:
export java_home=/usr/local/jdk-8u121-linux-x64
export path= $JAVA _home/ Bin: $PATH
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
4. Run profile Let the new configuration take effect
Source/etc/profile
java-version   //Check if installation is successful  
3. Download Nexus OSS 3.2.1

Download Address 3. Install Nexus OSS 3.2.1

First unzip the downloaded file

TAR-ZXVF nexus-3.2.1-01-unix.tar.gz

Editing environment variables

Add Nexus Path, be sure to note that the path can not be wrong

Nexus_home= "/opt/nexus-3.2.1-01"   

Modify the Bin/nexus.rc file under nexus-3.2.1-01

VI bin/nexus.rc

Set up the user who started the service, Nexus does not recommend using root, which is temporarily set to root

#run_as_user = "root"

Add a service

sudo ln-s $NEXUS _home/bin/nexus/etc/init.d/nexus
Start Nexus
Service Nexus Start

This is the start of the launch, log information can be

sonatype-work/nexus3/log/

View in.
Default Port 8081
Default User name Admin password admin123
Modify Port in Nexus-3.2.1-01/etc/nexus-default.properties

If it's too much trouble, you can use Docker: Link

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.