Nexus 3搭建及备份恢复


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。
恢复的时候直接将数据目录恢复即可。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM