下载nexus,地址:https://www.sonatype.com/download-oss-sonatype
填写邮箱和问题后
页面最下方,点击nexus 2.x
下载Repository Manager OSS:nexus-2.14.13-01-bundle.tar.gz
并上传至服务器。
安装之前先关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
确定java版本号1.8
解压文件:tar -zxvf nexus-2.14.13-01-bundle.tar.gz
进入nexus-2.14.13-01目录中的conf目录
vi nexus.properties
修改文件端口:8085
进入nexus-2.14.13-01/bin目录
vi nexus
修改RUN_AS_USER=root,然后保存。
启动:./nexus start
查看进程:ps -ef | grep nexus
启动正常。访问服务器:http://192.168.111.103:8085/nexus/
点击右上角log in,用户名:admin,密码:admin123
点击“add”->"Hosted Repository"
点击“save”,新增仓库。
在这里上传"jar"包
搞定~~