登錄http://www.sonatype.org/nexus/go/linux
下載nexus-2.14.5-02-bundle.tar.gzredis
在服務器中建立 nexus目錄,並下載nexus(在這裏先上傳到了oss 而後用wget形式進行下載)apache
[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]#
執行命令解壓tar.gzvim
tar zxvf nexus-2.14.5-02-bundle.tar.gz
進入解壓好的目錄瀏覽器
cd nexus-2.14.5-02
進入bin目錄運行nexustomcat
cd bin ./nexus start
關閉nexus的命令是服務器
./nexus stop
修改端口 進入conf目錄下app
vim nexus.properties
更改啓動用戶 進入到bin目錄下 執行vim nexuscode
進行修改成root用戶ip
在瀏覽器進行訪問。地址:http://ip:端口/nexus