Nexus 3搭建
官网下载相应的软件版本:Nexus官网
配置仓库存放地址
# tar xf xxxx
# more bin/nexus.vmoptions
-Xms500M
-Xmx500M
-XX:MaxDirectMemorySize=1G
-XX:+UnlockDiagnosticVMOptions
-XX:+UnsyncloadClass
-XX:+LogVMOutput
-XX:LogFile=/nexus3/sonatype-work/nexus-data/log/jvm.log
-Djava.net.preferIPv4Stack=true
-Dkaraf.home=.
-Dkaraf.base=.
-Dkaraf.etc=etc/karaf
-Djava.util.logging.config.file=etc/karaf/java.util.logging.properties
-Dkaraf.data=/nexus3/sonatype-work/nexus-data
-Djava.io.tmpdir=/nexus3/sonatype-work/nexus-data/tmp
-Dkaraf.startLocalConsole=false
启动
# bin/nexus start
Nexus 3备份恢复
只需要备份nexus.vmoptions中配置的数据位置即可,示例位置在/nexus3/sonatype-work/nexus-data。
恢复的时候直接将数据目录恢复即可。
本文详细介绍了如何从Nexus官网下载并配置Nexus3,包括设置内存参数、数据存放路径等。同时,提供了Nexus3的备份与恢复方法,只需备份指定的数据目录即可完成整个系统的恢复。
3063

被折叠的 条评论
为什么被折叠?



