Nexus3仓库迁移与备份

 注意修改端口号:根目录/etc/nexus-default.properties,application-port=端口号

 

Linux


 

  • 仓库迁移

Nexus的构件仓库都保存在sonatype-work目录中,该目录的位置由nexus/conf/nexus.properties配置文件指定。
仓库迁移需要两个过程:备份和还原

  • 备份仓库

将sonatype-work文件夹整体备份即可。

  • 还原仓库

将备份好的sonatype-work文件拷贝到新的服务器中。然后修改nexus/conf/nexus.properties配置文件,重新指定仓库的目录。

 

 

Windows


 

  • 仓库迁移

Nexus的构件仓库都保存在sonatype-work目录中,该目录的位置由bin/nexus.vmoptions配置文件指定(Dkaraf.data)。
仓库迁移需要两个过程:备份和还原

  • 备份仓库

将sonatype-work文件夹整体备份即可。

  • 还原仓库

将备份好的sonatype-work文件拷贝到新的服务器中。然后修改bin/nexus.vmoptions配置文件,重新指定仓库的目录。

 

转载:https://www.cnblogs.com/nethrd/p/9554163.html

posted @ 2021-08-19 09:39  老头还我葵花宝典  阅读(1557)  评论(0编辑  收藏  举报