美文网首页
nexus-2.11 升级至 nexus-2.14

nexus-2.11 升级至 nexus-2.14

作者: _浅墨_ | 来源:发表于2021-01-26 19:12 被阅读0次
    1. 备份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
    
    
    1. 把nexus-2.11的releases文件覆盖到nexus-2.14
    \cp -rf /u02/sonatype-work/nexus/storage/releases/* /u03/nexus/sonatype-work/nexus/storage/releases
    
    1. 重启2.14 nexus(端口8082)
     cd /u03/nexus/nexus-2.14.16-01/bin
     ./nexus restart
    
    1. 停止2.11-nexus (端口8081)
    cd /u02/applications/nexus-2.11.2-03/bin
     ./nexus stop
    
    1. 回滚方案
    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
    
    1. 修改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 由原地址

    http://ip:8081/repo/

    切换至

    http://ip:8082/repo/

    相关文章

      网友评论

          本文标题:nexus-2.11 升级至 nexus-2.14

          本文链接:https://www.haomeiwen.com/subject/zwogzktx.html