简体   繁体   中英

How to start use ElasticSearch in terminal CentOS?

I want to create a new index to ElasticSearch via command line in CentOS 6.5:

curl -XPUT http://localhost:9200/typeahead/

How to start elasticSearch service? I tried:

service elasticsearch
start elasticsearch

Also I tried:

cd elasticsearch-1.3.9/
[~/elasticsearch-1.3.9]# cd bin
[~/elasticsearch-1.3.9/bin]# ./elasticsearch -f

假设通过RPM正确设置了Elasticsearch,那么sudo service elasticsearch start应该可以解决问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM