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、解決了,遇到的坑。希望有同樣問題的人,可以不用踩了。
