1:文件在编辑时突然关闭,会产生一个swp文件, 再次打开时,首先恢复文件,vim -r filename.c
其次:删除swp文件, ls -a 查看隐藏文件 rm -rf .filename.c (隐藏文件以点开头)
2:es启动时报错:[2017-04-20T21:45:36,741][WARN ][o.e.b.JNANatives ] Unable to lock JVM Memory: error=12, reason=无法分配内存
[2017-04-20T21:45:36,746][WARN ][o.e.b.JNANatives ] This can result in part of the JVM being swapped out.
[2017-04-20T21:45:36,746][WARN ][o.e.b.JNANatives ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2017-04-20T21:45:36,747][WARN ][o.e.b.JNANatives ] These can be adjusted by modifying /etc/security/limits.conf, for example:
原因:设置了bootstrap.memory_lock: true导致Elasticsearch启动失败问题 系统限制了es的内存空间
解决方法:修改/etc/security/limits.conf 添加下列信息(具体修改格式limits.conf里面有注释告诉)
用户名 soft memlock unlimited
用户名 hard memlock
搭建ELK遇见的问题以及解决方案
![](https://img-home.csdnimg.cn/images/20240711042549.png)