nexus3.x启动不起来

1、首先说两种启动命令,网上最多的是用./nexus start。这种是后台启动,看不到实时日志;./nexus run 是实时启动可以看到日志。

2、linux下解压nexus-3.6.2-01-unix.tar.gz一般是没有啥问题,用run时可能会看到有关memery的报错,这时可以考虑是机器运行内存不够,nexus中默认是2g。所以需要注意这一点。

3、若启动正常时,访问可能无果,这是把防火墙关闭一下,systemctl stop firewalld 。

4、登录后上面显示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修改,默认是注释的。

5、解决了,遇到的坑。希望有同样问题的人,可以不用踩了。



猜你喜欢

转载自www.cnblogs.com/zxg-blog/p/9846230.html