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