1: Download Nexus
Download path: http://www.sonatype.org/nexus/archived/
I downloaded: nexus2.12.0-01
2: Upload to the CentOS server via FTP.
Unzip the file
Tar zxvf nexus-2.12.0-01-bundle.tar.gz
Extract one more folder after decompression
3:nexus start
Nexus boot is in the bin directory, first look at the startup/shutdown/restart command, Input command:
Cd/usr/local/nexus-2.12.0-01/bin
./nexus
Enter the command after the following image:
Start Nexus
./nexus Start
An error message will appear
"If you insist running as root, then set thee nvironment variable run_as_user=root before running this script." Warning message. Presumably: If you want to use the root user, you should set the environment variable "Run_as_user=root" before running the start script.
modifying environment variables
Vi/etc/profile to join Exportrun_as_user=root
When you start the Nexus
./nexus
The following figure appears, indicating a successful start.
Close Nexus:
#./nexus stop
4:nexus Verification
Input Address: http://192.168.43.136:8081/nexus/
IP address Write your own just fine, I here is directly to put the firewall off, you can add 8081 port accessible.