nexus-2.11 升级至 nexus-2.14
2021-01-26 本文已影响0人
_浅墨_
- 备份nexus-2.11、nexus-2.14 releases下的文件
cp -r /u02/sonatype-work/nexus/storage/releases /u02/sonatype-work/nexus/storage/releases-bak
cp -r /u03/nexus/sonatype-work/nexus/storage/releases /u03/nexus/sonatype-work/nexus/storage/releases-bak
- 把nexus-2.11的releases文件覆盖到nexus-2.14
\cp -rf /u02/sonatype-work/nexus/storage/releases/* /u03/nexus/sonatype-work/nexus/storage/releases
- 重启2.14 nexus(端口8082)
cd /u03/nexus/nexus-2.14.16-01/bin
./nexus restart
- 停止2.11-nexus (端口8081)
cd /u02/applications/nexus-2.11.2-03/bin
./nexus stop
- 回滚方案
cp /u03/nexus/sonatype-work/nexus/storage/releases /u03/nexus/sonatype-work/nexus/storage/releases-bad-bak
mv /u03/nexus/sonatype-work/nexus/storage/releases-bak /u03/nexus/sonatype-work/nexus/storage/releases
cd /u02/applications/nexus-2.11.2-03/bin
./nexus start
cd /u03/nexus/nexus-2.14.16-01/bin
./nexus restart
- 修改context-path路径
[root@localhost ~]# vi /home/software/nexus/nexus-2.14.3-02/conf/nexus.properties
修改:
nexus-webapp-context-path=/nexus
为:
nexus-webapp-context-path=/repo
重启nexus服务
cd /u03/nexus/nexus-2.14.16-01/bin
./nexus restart
Nexus 由原地址
切换至