失败的原因: realms呀
意思是 安全控制 关闭了,没事的。能用就说明没问题
检查jdk环境变量,路径是否有空格等
程序在 /usr/share/elasticsearch/bin
但是需要添加新用户,并设置通过
chown -R 用户名 目录
给下列目录设置权限
/etc/sysconfig/elasticsearch/
/usr/share/elasticsearch/
/var/log/elasticsearch/
/var/lib/elasticsearch/
/etc/elasticsearch/
然后设置通过"/etc/security/limits.conf"或ulimit -n 65536
设置max file descriptors的值大于等于65536
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
不能以 root 来运行 es,新建一个 elasticsearch 的用户来运行
这是 es 的一个 bug,如果java 或者 es 的路径中包含括号,会导致启动异常,解决方案参见这里
if your java is installed under C:\Program Files (x86) then set the JAVA_HOME like will below
set JAVA_HOME=C:\Progra~2\Java\jre1.8.0_131
if your java is installed under C:\Program Files then set the JAVA_HOME like will below
set JAVA_HOME=C:\Progra~1\Java\jre1.8.0_131
都可以,和你们的运维体系有关系,一般是用 rpm 包
谢谢肯定!后面会有新的课程的,尽情期待!
应该可以的,我还没试过,生产还是建议用1.8