nexus

安装nexus

参照地址:

https://www.cnblogs.com/shown1985/p/6492313.html

使用地址:
https://www.aliyun.com/jiaocheng/119209.html?spm=5176.100033.2.5.JcqQHt


传统安装nexus,全面

https://www.cnblogs.com/kevingrace/p/6201984.html

 

 

nexus无法启动解决

[root@host-10-1-1-163 bin]# ./nexus run

WARNING: ************************************************************

WARNING: Detected execution as "root" user.  This is NOT recommended!

WARNING: ************************************************************

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000b5000000, 838860800, 0) failed; error='Cannot allocate memory' (errno=12)

#

# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (mmap) failed to map 838860800 bytes for committing reserved memory.

# An error report file with more information is saved as:

# /usr/local/nexus-3.12.1-01/hs_err_pid25069.log

 

问题:内存不够

 

解决:

[root@host-10-1-1-163 bin]# echo 1 > /proc/sys/vm/overcommit_memory

临时更改: echo 1 > /proc/sys/vm/overcommit_memory

永久更改: 编辑 /etc/sysctl.conf,修改参数 vm.overcommit_memory = 1,重启服务器或者用户重新登录

 

[root@host-10-1-1-163 bin]# ./nexus run

 

posted @ 2018-11-24 15:41  effortsing  阅读(203)  评论(0编辑  收藏  举报