-
centos Unix版本Nexus 3.13.0 https://pan.baidu.com/s/1qQBNj2soc8Un4AoRejvEyw
-
密码 : sb12
-
下载好上传到centos 用指令解压到 /usr/local/nexus,千万不要在windows上解压。
-
在/usr/local/nexus/ 下有 nexus-2.13.0-01 和 sonatype-work 两个文件夹
-
执行 /usr/local/nexus/nexus-3.13.0-01下的nexus命令 ./nexus run 启动nexus
-
默认的端口是8081端口 用户名 admin 密码 admin123
-
注意:必要时加上 USER_AS_ROOT=root
-
放开防火墙的8081端口
firewall-cmd --zone=public --add-port=8080/tcp --permanent #开放8080端口
systemctl restart firewalld.service -
(首选亲测可用方案)另一种解决方法:登录后上面显示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修改,默认是注释的。
解决了,遇到的坑。希望有同样问题的人,可以不用踩了。
-
(备选)如果登陆后首页出现 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 -
设置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 -
重置admin的方法。
http://www.mamicode.com/info-detail-2688046.html -
部署本地的构件至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
在Unix系统上安装nexus 3.x 私服以及nexus私服的仓库设置
最新推荐文章于 2022-06-30 13:51:05 发布