在Unix系统上安装nexus 3.x 私服以及nexus私服的仓库设置

  1. centos Unix版本Nexus 3.13.0 https://pan.baidu.com/s/1qQBNj2soc8Un4AoRejvEyw

  2. 密码 : sb12

  3. 下载好上传到centos 用指令解压到 /usr/local/nexus,千万不要在windows上解压。

  4. 在/usr/local/nexus/ 下有 nexus-2.13.0-01 和 sonatype-work 两个文件夹

  5. 执行 /usr/local/nexus/nexus-3.13.0-01下的nexus命令 ./nexus run 启动nexus

  6. 默认的端口是8081端口 用户名 admin 密码 admin123

  7. 注意:必要时加上 USER_AS_ROOT=root

  8. 放开防火墙的8081端口
    firewall-cmd --zone=public --add-port=8080/tcp --permanent #开放8080端口
    systemctl restart firewalld.service

  9. (首选亲测可用方案)另一种解决方法:登录后上面显示system requirement max file descriptors 4096 too low 等字眼,这时需要把/etc/security/limits.conf 中增加以下两行:

    • (星号) soft nofile 65536
    • (星号)hard nofile 65536 然后重启系统。若扔热不好使,直接将/etc/systemd/system.conf 和 /etc/systemd/user.conf 中 DefaultLimitNOFILE=65536修改,默认是注释的。
      解决了,遇到的坑。希望有同样问题的人,可以不用踩了。
  10. (备选)如果登陆后首页出现 System Requirement: max file descriptors [10240] likely too low, increase to at least [65536].错误信息
    解决方法 在/etc/security这个目录下新建limits.conf文件,添加一下内容就可以解决
    nexus soft nofile 1024
    nexus hard nofile 65536
    停止 ./nexus stop
    启动nexus ./nexus start

  11. 设置nexus的开机启动
    在export JAVA_HOME=/usr/local/jdk1.8/jdk1.8.0_192
    export PATH=$JAVA_HOME/bin:$PATH
    /usr/local/nexus3/nexus-3.13.0-01/bin/nexus start

  12. 重置admin的方法。
    http://www.mamicode.com/info-detail-2688046.html

  13. 部署本地的构件至Nexus


    nexus-releases
    Nexus Releases Repository
    http://localhost:8081/nexus/content/repositories/releases


    nexus-snapshots
    Nexus Releases Repository
    http://localhost:8081/nexus/content/repositories/snapshots

    另外:在settings.xml中配置


    nexus-releases
    admin



    nexus-snapshots
    admin


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值