可能遇到的错误:
问题:1、 max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决方法 提高 vm.max_map_count 的大小
切换到 root 用户
vim /etc/sysctl.conf
在最后面追加下面内容
vm.max_map_count=262144 #
使用 sysctl -p 查看修改后的结果
sysctl -p
问题:2、Java HotSpot(TM) 64-Bit Server VM warning: ...
这个文件主要是用来限制用户对系统资源的使用,具体的使用方法 man 5 limits.conf,里面便给出了详细的用法
user@db-2:~$ cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#
#
#Where:
# can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, ...