Press "Enter" to skip to content

使用Nexus搭建maven私有仓库

安装前提:主机java已安装.

主机环境:Redhat 7

安装版本: 3.11.0-01(为当前日期的最新版本,下载地址https://download.sonatype.com/nexus/3/latest-unix.tar.gz, 其它版本下载地址:https://www.sonatype.com/download-oss-sonatype?hsCtaTracking=920dd7b5-7ef3-47fe-9600-10fecad8aa32%7Cf59d5f10-099f-4c66-a622-0254373f4a92)

Nexus官网地址:https://www.sonatype.com/

Nexus官方文档地址:https://help.sonatype.com/repomanager3

具体安装步骤:

将下载的安装包放至某目录,如/root.

[root@test ~]# tar -zxvf nexus-3.11.0-01-unix.tar.gz  //解压

[root@test ~]#cd nexus-3.11.0-01-unix/nexus-3.11.0-01/bin //进入nexus目录

[root@test ~]#./nexus run  //运行Nexus

运行成功后,会出现"Started Sonatype Nexus OSS 3.11.0-01"字样.

最后打开浏览器,输入http://yourip:8081/验证安装是否正常(可在nexus-3.11.0-01-unix/nexus-3.11.0-01/etc/nexus-default.properties修改默认端口).

 

Be First to Comment

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注