自动化发布-3.Nexus仓库搭建

255 阅读1分钟

原文日期:2017-01-27


Nexus是一个maven私服仓库,他的安装方式也有两种,一种是离线包安装,另外一种是docker方式安装,这里我使用的是docker方式安装。

离线包安装

1.下载nexus安装包

$ wget www.sonatype.org/downloads/n…

2.解压安装包

$ tar -zxvf nexus-latest-bundle.tar.gz

3.进入nexus的bin目录,启动nexus

$ ./nexus start

4.停止nexus

$ ./nexus stop

Docker方式安装

首先我们需要安装docker引擎,安装docker步骤详见自动化发布-docker安装

之后直接安装Nexus镜像

$ docker run -d -p 8081:8081 --name nexus sonatype/nexus:oss

参考:自动化发布-docker安装