权限也有,配置也对 maybe。就是无法开机自动启动。。。 [root@localhost service]# ll total 96 -rwxr-xr-x. 1 root root 55710 Apr 19 19:59 elasticsearch -rw-r--r--. 1 root root 64 Apr 19 19:59 elasticsearch32 -rw-r--r--. 1 root root 64 Apr 19 19:59 elasticsearch64 -rw-r--r--. 1 root root 2610 Apr 19 19:59 elasticsearch.bat -rw-r--r--. 1 root root 4753 Apr 19 20:02 elasticsearch.conf -rw-r--r--. 1 root root 8 Apr 19 20:17 elasticsearch.java.status -rw-r--r--. 1 root root 5 Apr 19 20:17 elasticsearch.pid -rw-r--r--. 1 root root 8 Apr 19 20:17 elasticsearch.status drwxr-xr-x. 2 root root 4096 Apr 19 19:59 exec drwxr-xr-x. 2 root root 4096 Apr 19 19:59 lib [root@localhost service]# chkconfig --list elasticsearch elasticsearch 0ff 1ff 2n 3n 4n 5n 6ff [root@localhost service]# 只能这样添加才能开机启动。。。 [root@localhost service]# vi /etc/rc.local /usr/share/elasticsearch/bin/service/elasticsearch start [root@localhost ~]# curl http://127.0.0.1:9200 { "status" : 200, "name" : "Shocker", "cluster_name" : "elasticsearch", "version" : { "number" : "1.5.1", "build_hash" : "5e38401bc4e4388537a615569ac60925788e1cf4", "build_timestamp" : "2015-04-09T13:41:35Z", "build_snapshot" : false, "lucene_version" : "4.10.4" }, "tagline" : "You Know, for Search" } [root@localhost ~]#
只能这样添加才能开机启动。。。 [root@localhost service]# vi /etc/rc.local /usr/share/elasticsearch/bin/service/elasticsearch start 老版本的可以自动启动。