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