使用Nexus建立Maven私有仓库

登录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 

相关文章
相关标签/搜索