- 参考https://gitee.com/zscat-platform/mall/wikis/%E9%83%A8%E7%BD%B2?sort_id=1339355
- 下载地址:https://www.elastic.co/downloads/past-releases/elasticsearch-2-4-6
- 下载.zip文件,解压到指定目录
- 安装head插件,在elasticsearch-2.4.6\bin目录下执行以下命令:plugin install mobz/elasticsearch-head
- 安装中文分词插件:https://github.com/medcl/elasticsearch-analysis-ik
- 下载地址:https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v1.10.6/elasticsearch-analysis-ik-1.10.6.zip
- 解压并拷贝到elasticsearch-2.4.6\plugins目录下
- 启动elasticsearch:运行elasticsearch-2.4.6\bin\elasticsearch.bat
- 打开该地址测试是否安装成功:http://localhost:9200/_plugin/head/
- 解决root不能启动https://blog.csdn.net/u010317005/article/details/52205825
- 外网访问9200端口
- 打开安全组添加9200,9300端口
- 外网访问
- https://www.cnblogs.com/xdao/p/elasticsearch_config.html
- 域名访问,修改nginx配置
- server {
listen 9200;
server_name maliang666.com;
location /{
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://es;
}
} - upstream es{
#同一机器在多网情况下,路由切换,ip可能不同
#weigth参数表示权值,权值越高被分配到的几率越大
#server localhost:8080 weight=1;
#server localhost:9080 weight=1;
server 127.0.0.1:9200;
} - 后台启动
- bin/elasticsearch -d,查看jps
阿里云安装ES
最新推荐文章于 2023-09-04 19:00:08 发布