首先,地址下载nexus:
OSS 免费 PRO收费
2.6 及以上版本需要 JDK1.8 以上
LINUX 选择 OS 版本
安装nexus
以下案例
JDK 1.7
nexus 2.6.2
解压即可
tar -zxvf
跳转到 ${nexus根目录}/nexus-2.6.2-01/bin
运行
./nexus { console | start | stop | restart | status | dump }
启动成功
修改端口号
目标文件 nexus.properties
位置 :${nexus根目录}/conf
setting 设置
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>xinda maven</id>
<mirrorOf>*</mirrorOf>
<name>信达私服</name>
<url>http://115.231.73.154:9081/nexus/content/groups/public/</url>
</mirror>
上传jar包
Repositories > Releases > Artifact Upload
修改nexus中央仓库为华为云仓库
添加Prixy
解决报错问题
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.
修改%nexus_home%/bin/下的nexus
找到#RUN_AS_USER=改为RUN_AS_USER=root
评论区