使用Nexus 搭建私有Maven库之安装nexus服务
1、下载nexus ,
官方网址:Nexus
Unix archivehttps://download.sonatype.com/nexus/3/latest-unix.tar.gz ( ASC , MD5 , SHA1 )
Windows archivehttps://download.sonatype.com/nexus/3/latest-win64.zip ( ASC , MD5 , SHA1 )
OSX archivehttps://download.sonatype.com/nexus/3/latest-mac.tgz ( ASC , MD5 , SHA1 )
2、下载完成,解压压缩包
3、启动nexus服务
通过命令行,进入bin文件夹,执行命令: nexus.exe /run,开始启动nexus服务。
成功后,可以看到 “Started Sonatype Nexus OSS 3.15.2-01”字样。
浏览器输入 localhost:8081,即可看到nexus的界面。
4、将nexus安装为Windows服务,避免每次开机需要启动。
同样进入bin文件夹,执行命令:nexus.exe /install
完成后即可看到“Installed service nexus.” 提示,代表服务已经安装,可以查看windows 服务管理
设置服务为自启动,以后每次开机自动开启nexus服务。启动服务后,同样打开localhost:8081,进入nexus首页,代表服务启动成功。