Uninote
Uninote
用户根目录
tmp
博客笔记

修改配置文件建议local配置

/mynote/basic/config/local_params.php

    /*es 索引*/
    'es_host' => '47.97.186.229',
    'es_index' => 'mynote',

公共配置目录

/mynote/basic/config/params.php

    // ElasticSearch 配置
    'es_host' => '127.0.0.1',
    'es_port' => '9200',
    'es_index' => 'mynote',

清除es数据

POST content-type:application/json http://[host]:9200/[es_index]/article/_delete_by_query?refresh&slices=5&pretty

{
  "query": {
    "match_all": {}
  }
}

eg:

curl -X POST "http://dev.rongyipiao.com:9200/mynote_dev/article/_delete_by_query?refresh&slices=5&pretty" -H 'Content-Type: application/json' -d'
{
  "query": {
    "match_all": {}
  }
}
'

同步mysql文章到es存储

GET http://[host]/api/synes

eg:

curl http://dev.rongyipiao.com/api/synes

关闭es

jps kill -9 [Elasticsearch]

高并发和大流量解决方案

即时通讯方案 - 上海询五

点赞(0) 阅读(10) 举报
目录
标题