ElasticSearch备忘

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/dujianxiong/article/details/81535630
curl -H "Content-Type: application/json"   'http://localhost:9200/_analyze?pretty=true' -d '{"analyzer": "ik_max_word","text":"安徽省长江流域"}'

1、Es的停止

若es的后台运行,jps -l 查出进程号,再用kill  -9 进程号来停止。

2、ES启动

 bin/elasticsearch -d 

3、修改ES内存

修改 config/jvm.options文件

-Xms256m
-Xmx256m

猜你喜欢

转载自blog.csdn.net/dujianxiong/article/details/81535630