一、下载Nexus
官网:Download
进去后直接下载window系统的,但需要挂VPN,如果没有的话,下方有百度网盘链接;
链接:百度网盘 请输入提取码
提取码:soft
二、安装
1.解压
解压后会出现如下两个目录
![453152b14cde12d1b70fb66bd0213235.jpeg](https://i-blog.csdnimg.cn/blog_migrate/453152b14cde12d1b70fb66bd0213235.jpeg)
2.启动Nexus
快捷键win+x→Windows PowerShell(管理员)(A),打开PowerShell;
![ff6b8ded200a09eb08c1698f702a8088.png](https://i-blog.csdnimg.cn/blog_migrate/ff6b8ded200a09eb08c1698f702a8088.png)
输入 d: 切换到D盘,cd "xx:\xx\nexus-xxx\bin",如本机cd "D:\Program Files\nexus-3.3.1-01\bin"
![c0cd07d2e599d96adc2ad51f08d81085.png](https://i-blog.csdnimg.cn/blog_migrate/c0cd07d2e599d96adc2ad51f08d81085.png)
输入 ./nexus.exe /install;
![effe37c2c3109299e1a184af96f5f2c2.png](https://i-blog.csdnimg.cn/blog_migrate/effe37c2c3109299e1a184af96f5f2c2.png)
启动服务,
![5b7e44e6771b5305a803ebdbdb1fd99d.png](https://i-blog.csdnimg.cn/blog_migrate/5b7e44e6771b5305a803ebdbdb1fd99d.png)
问题:
访问http://localhost:8081/nexus/,404;
![319693130e26a87435352ffe321883e1.jpeg](https://i-blog.csdnimg.cn/blog_migrate/319693130e26a87435352ffe321883e1.jpeg)
解决:
找到sonatype-work\nexus3\etc\nexus.properties,打开,增加:
# Jetty sectionapplication-port=8081application-host=0.0.0.0nexus-webapp=${bundleBasedir}/nexus
nexus-context-path=/nexus
# Nexus sectionnexus-work=${bundleBasedir}/../sonatype-work/nexus3
runtime=${bundleBasedir}/nexus/WEB-INF
![3099012377d2540266b90c7fdb10f57a.png](https://i-blog.csdnimg.cn/blog_migrate/3099012377d2540266b90c7fdb10f57a.png)
保存,重启,访问:http://localhost:8081/nexus/ !!!
![276783b9dad9b092d0641492bad0a1d3.png](https://i-blog.csdnimg.cn/blog_migrate/276783b9dad9b092d0641492bad0a1d3.png)