1. Download http://www.sonatype.org/nexus/archived/
2, Nexus name nexus-2.12.0-01-bundle.tar.gz, upload to/usr/local/java/nexus.
3. Unzip the tar zxvf nexus-2.12.0-01-bundle.tar.gz
4, enter the/usr/local/java/nexus/nexus-2.12.0-01/bin, start the Nexus;
[Root@localhost bin]#./nexus
Usage:./nexus {Console | start | stop | restart | status | dump}
[root@localhost bin]#./nexus start
****************************************
warning-not RECOMMENDED to RUN as ROOT
* * * * * *
If you insist running as root and then set the environment variable Run_as_user=root Before running this script.
A warning appears and the start fails;
This is the requirement to configure the environment variables, in the following steps:
4.1 Editing Environment variables
Vi/etc/profile
4.2 Added at the end
########################################################
################### #nexus ######################### ######
Export Run_as_user=root
4.3 Configuring environment variables to take effect
4.4 Re-run
[Root@localhost bin]# source/etc/profile
[root@localhost bin]#./nexus start
******************************
Warning-not RECOMMENDED to RUN as ROOT
****************************************
starting Nexus OSS
... Started Nexus OSS.
5. Start Port 8081
Firewall-cmd --add-port=8081/tcp
6. Visit http://192.168.1.250:8081/nexus/
7 First login nexus, default username and password for admin and admin123