nexus-3.14.0升級到3.15.2
首先來看下原來的服務目錄:
nexus-3.14.0-04 sonatype-work
注意:nexus-3.14.0-04是
應用程序包
,sonatype-work是數據目錄
。
那么現在想要升級到3.15,先把包傳過來,接着解壓,然后直接啟動即可。
# mkdir tmp
# tar xf nexus-3.15.2-01-unix.tar.gz -C tmp/
# ls tmp/
nexus-3.15.2-01 sonatype-work
然后把應用程序拷貝過來,再簡單配置一下。
mv tmp/nexus-3.15.2-01/ ./
rm -rf tmp/
vim nexus-3.15.2-01/bin/nexus.rc #去掉注釋,user改成nexus
chown -R nexus.nexus nexus-3.15.2-01
因為其他的都是保持的默認,所以不需要更改,接下來直接啟動即可。
cd nexus-3.15.2-01/bin/
nohup ./nexus run &
初次加載可能比較慢,等待一會兒,可以監聽日志,看到如下信息:
------------------------------------------------- Started Sonatype Nexus OSS 3.15.2-01 ----------------------------------------------
說明啟動正常,再看看端口也起來了,訪問一下,發現原來的數據都還在,就能投入使用了。升級也就完成了。