如何从Nexus Professional迁移到Nexus OSS

问题描述 投票:1回答:2

我想将Nexus Professional的安装“降级”到Nexus OSS。可能吗?我需要做什么?

repository nexus
2个回答
3
投票

是的,这不是一项复杂的任务。

在同一台服务器上安装Nexus OSS。请更改以下内容,以便新的Nexus OSS具有与现有Nexus Professional运行时相同的配置。

组态

  • port在[runtime] /conf/nexus.properties中设置
  • sonatype-work目录位置在[runtime] /conf/nexus.properties中设置
  • java命令在[runtime] /bin/jsw/conf/wrapper.conf中设置
  • 日志目录位置在[runtime] /conf/nexus.properties中设置

处理

  • 停止专业
  • 确保备份sonatype-work / nexus / conf目录
  • 从sonatype-work / nexus / plugin-repository中删除专业插件
  • 将OSS的p2插件添加到sonatype-work / nexus / plugin-repository sonatype-work / nexus / conf / nexus.xml
  • 从nexus.xml中删除采购存储库引用
  • 删除使用nexus.xml中的专业插件或功能的计划任务注意:这两项任务可以在停止之前从Nexus Professional UI完成。
  • 从sonatype-work / nexus / conf / security-configuration.xml中删除User-Token-Realm

启动Nexus OSS

  • 最好使用nexus console而不是nexus start启动,因此它显示了更多信息
  • 检查[runtime] /logs/wrapper.log
  • 检查sonatype-work-nexus / logs / nexus.log

1
投票

请注意:如果您的Nexus 3 Pro许可证已过期,则当您登录UI时,您无法访问管理界面中的任何内容。您只会被重定向回许可证屏幕,并显示严重警告消息,表明您没有有效许可证。

我尝试删除所有Pro插件等,如前面的答案。试图找到Pro许可证存储在文件中的位置 - 但无法从Sonatype中找到任何文档。我以为它存储在数据库的某个地方。

在我的情况下,我使用评估服务器,所以我删除了整个sonatype-work/nexus3目录并重新启动了nexus服务器。即使没有数据,它仍然声称是Nexus Pro安装。

最后我发现设置存储在用户主目录中,在所有地方的~/.java/.userPrefs/com/sonatype中。

删除/重命名该目录后,我可以将Nexus作为常规OSS启动。

在Sonatypes文档中找到它并不容易,但是他们在某些地方提到它,例如:https://support.sonatype.com/hc/en-us/articles/213465018-Every-time-Nexus-is-restarted-it-asks-for-the-license-to-be-installed-

© www.soinside.com 2019 - 2024. All rights reserved.