Go to http://www.sonatype.org/nexus/go/
Download nexus-2.14.5-02-bundle.tar.gz
Create the nexus directory in the server and download the Nexus (upload it to the oss first and then download it in the form of wget)
[root@iZm5e0c5bxd15k4yfdiirsZ opt]# mkdir nexus [root@iZm5e0c5bxd15k4yfdiirsZ opt]# ls apache-tomcat-8.0.30 jdk1.8.0_11 nexus redis-3.2.9 [root@iZm5e0c5bxd15k4yfdiirsZ opt]# cd nexus/ [root@iZm5e0c5bxd15k4yfdiirsZ nexus]# ls [root@iZm5e0c5bxd15k4yfdiirsZ nexus]# wget http://zsj-linux.oss-cn-hangzhou.aliyuncs.com/nexus-2.14.5-02-bundle.tar.gz --2017-08-23 16:15:38-- http://zsj-linux.oss-cn-hangzhou.aliyuncs.com/nexus-2.14.5-02-bundle.tar.gz Resolving zsj-linux.oss-cn-hangzhou.aliyuncs.com (zsj-linux.oss-cn-hangzhou.aliyuncs.com)... 116.62.99.100, 120.27.176.89 Connecting to zsj-linux.oss-cn-hangzhou.aliyuncs.com (zsj-linux.oss-cn-hangzhou.aliyuncs.com)|116.62.99.100|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 73187012 (70M) [application/octet-stream] Saving to: 'nexus-2.14.5-02-bundle.tar.gz' 100%[====================================================================================================================================================================================================================================>] 73,187,012 2.92MB/s in 24s 2017-08-23 16:16:02 (2.89 MB/s) - 'nexus-2.14.5-02-bundle.tar.gz' saved [73187012/73187012] [root@iZm5e0c5bxd15k4yfdiirsZ nexus]# ls nexus-2.14.5-02-bundle.tar.gz [root@iZm5e0c5bxd15k4yfdiirsZ nexus]#
Execute the command to extract tar.gz
tar zxvf nexus-2.14.5-02-bundle.tar.gz
Enter the unzipped directory
cd nexus-2.14.5-02
Run nexus in bin directory
cd bin ./nexus start
The command to close nexus is
./nexus stop
Modify the port and enter the conf directory
vim nexus.properties
Change the boot user to enter the bin directory to execute vim nexus
Change to root
Access in browser. Address: http://ip: port / nexus