nexus下载
可以在官网下载nexus,也可以通过其他方式下载,这里使用的是2.11.4版本(3.x版本一直有问题,因此未选择)
官网地址为:https://www.sonatype.com/download-oss-sonatype
nexus安装
解压下载的nuxes安装包,得到两个文件夹,增加相关配置后,可以直接启动:
在这里插入代码片
vim /etc/profile
增加
export RUN_AS_USER=root
source /etc/profile
启动:
tar -xvzf nexus-2.11.4-01-bundle.tar.gz
cd nexus-2.11.4-01
./bin/nexus start
启动后,访问IP:8081/nexus,可以通过web端进行配置:
使用
配置settings.xml:
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://*.*.*.*:8081/nexus/content/groups/public/</url>
</mirror>
搭建完成
用户管理
用户名:admin
密码:admin123