1。从弹性官网下载最新版本的Elasticsearch,目前最新版本为V2.3.3。
2。解压
tar zxvf elasticsearch-2.3.2.tar。广州
3。切换到Elasticsearch的本目录下,启动服务只
/Elasticsearch Exception thread 拷贝;“主要”,java.lang.RuntimeException:,并't run elasticsearch as 根。
启动时会发现Elasticsearch会报如下错误,因为Elasticsearch为安全起见不允许使用根账号启动服务。
4。创建一个新账号
[root@Server01 本]#,useradd elasticsearchuser (root@Server01 本)#,passwd elasticsearchuser Changing password  for user  elasticsearchuser。 密码:New BAD 密码:is too 简单 Retype new 密码: 密码:all authentication tokens  updated 成功。 (root@Server01 本)#,usermod -g root elasticsearchuser
5只重新启动服务。
[elasticsearchuser@Server01 本],美元。/elasticsearch (2016 - 05 - 19,16:44:41,864][WARN ] [bootstrap ,,,,,,,,,,,,,,,), unable 用install syscall 过滤器:,seccomp 不可用:,requires kernel 3.5 +, with CONFIG_SECCOMP 以及CONFIG_SECCOMP_FILTER compiled 在 (2016 - 05 - 19,16:44:42,190][INFO ] [node ,,,,,,,,,,,,,,,,,,,,), [Genis-Vell],版本2.3.2 [],pid[8878],构建[b9e4a6a/2016 - 04 - 21 - t16:03:47z] (2016 - 05 - 19,16:44:42,191][INFO ] [node ,,,,,,,,,,,,,,,,,,,,), [Genis-Vell], initializing … (2016 - 05 - 19,16:44:42,774][INFO ] [plugins ,,,,,,,,,,,,,,,,,), [Genis-Vell], modules [lang-groovy,重建索引,,lang-expression],, plugins [],, sites [] (2016 - 05 - 19,16:44:42,805][INFO ] [env ,,,,,,,,,,,,,,,,,,,,,), [Genis-Vell], using [1], data 路径,,mounts [[/, (/dev/sda2)]],, net usable_space (486.6 gb), net total_space (533.7 gb),旋转?,[可能],types (ext4) (2016 - 05 - 19,16:44:42,805][INFO ] [env ,,,,,,,,,,,,,,,,,,,,,), [Genis-Vell], heap size (990.7 mb), compressed ordinary object pointers (真正的) (2016 - 05 - 19,16:44:42,805][WARN ] [env ,,,,,,,,,,,,,,,,,,,,,), [Genis-Vell], max file descriptors [20480], for elasticsearch process likely too 低,,consider increasing 用at least [65536] (2016 - 05 - 19,16:44:44,758][INFO ] [node ,,,,,,,,,,,,,,,,,,,,), (Genis-Vell),初始化 (2016 - 05 - 19,16:44:44,758][INFO ] [node ,,,,,,,,,,,,,,,,,,,,), [Genis-Vell], starting … (2016 - 05 - 19,16:44:44,858][INFO ] [transport ,,,,,,,,,,,,,,,), [Genis-Vell], publish_address {127.0.0.1:9300},, bound_addresses {127.0.0.1:9300},, {[:: 1]: 9300} (2016 - 05 - 19,16:44:44,863][INFO ] [discovery ,,,,,,,,,,,,,,,), [Genis-Vell], elasticsearch/kpitDjQNTwu8Q4D4pbWXnQ (2016 - 05 - 19,16:44:47,910][INFO ] [cluster.service ,,,,,,,,,), [Genis-Vell], new_master {Genis-Vell} {kpitDjQNTwu8Q4D4pbWXnQ}{127.0.0.1}{127.0.0.1:9300},,原因是:,zen-disco-join (elected_as_master, [0], joins 收到) (2016 - 05 - 19,16:44:47,923][INFO ] [http ,,,,,,,,,,,,,,,,,,,,), [Genis-Vell], publish_address {127.0.0.1:9200},, bound_addresses {127.0.0.1:9200},, {[:: 1]: 9200} null null null null null null null null null null null null nullElasticsearch安装配置