当前位置: 首页 > news >正文

优化网站加载速度拉人头最暴利的app

优化网站加载速度,拉人头最暴利的app,自定义wordpress后台,企业门户网站的设计 流程图Elasticsearch介绍 Elasticsearch 是一个分布式搜索引擎,底层基于 Lucene 实现。Elasticsearch 屏蔽了 Lucene 的底层细节,提供了分布式特性,同时对外提供了 Restful API。Elasticsearch 以其易用性迅速赢得了许多用户,被用在网站…

Elasticsearch介绍

Elasticsearch 是一个分布式搜索引擎,底层基于 Lucene 实现。Elasticsearch 屏蔽了 Lucene 的底层细节,提供了分布式特性,同时对外提供了 Restful API。Elasticsearch 以其易用性迅速赢得了许多用户,被用在网站搜索、日志分析等诸多方面。
官网地址:https://www.elastic.co/cn/elasticsearch

Elasticsearch部署安装

具体选择哪个版本需要跟你的使用环境有关,并不是越新越好,比如这里我们公司开发环境用的是JDK8,Springboot版本是2.3.12.RELEASE,那么你可以在spring-boot-dependencies依赖中找到该代码<elasticsearch.version>7.6.2</elasticsearch.version>说明需要使用7.6.2版本,你可以可以在spring官网找到如下版本对照:
https://www.chengpei.top/upload/spring-es-version.png

部署包安装

可以官方网站下载安装包:https://www.elastic.co/cn/downloads/past-releases#elasticsearch,选择相对应的版本和平台下载即可。
下载下来的文件解压,需要修改config/elasticsearch.yml配置文件,这里先配置几个必须的

# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["localhost"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["localhost"]
#
# For more information, consult the discovery and cluster formation module documentation.

discovery.seed_hosts、cluster.initial_master_nodes与集群相关,我这里测试但节点部署就直接填了localhost,配置完成执行bin/elasticsearch -d即可启动,启动完成访问服务的9200端口返回如下说明启动完成
https://www.chengpei.top/upload/es-http.png

docker安装

docker run --name elasticsearch -p 9200:9200 -p 9300:9300  
-e "discovery.type=single-node" 
-e ES_JAVA_OPTS="-Xms1g -Xmx1g" 
-v /data/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml 
-v /data/elasticsearch/data:/usr/share/elasticsearch/data 
-v /data/elasticsearch/plugins:/usr/share/elasticsearch/plugins 
-d elasticsearch:7.6.2

中文分词插件安装

我们需要做中文分词搜索,就需要给ES安装中文分词查询,一般用到的分词器是这个IK分词器,github地址:https://github.com/infinilabs/analysis-ik,但是注意分词器的版本和elasticsearch的版本是严格对应的,不能随便选择分词器版本,比如我这里安装7.6.2版本的分词器,可以来到elasticsearch的bin目录下执行命令./elasticsearch-plugin install https://get.infini.cloud/elasticsearch/analysis-ik/7.6.2,可以安装分析器

http://www.yidumall.com/news/20886.html

相关文章:

  • 北京网站制作是什么桂林最新消息今天
  • 网站便捷营销seo培训一对一
  • h5网站开发流程图百度推广怎么才能效果好
  • 做的好的地方网站百度业务推广
  • 做微信的微网站费用多少合适佛山seo技术
  • 百家号wordpressseo专员工资一般多少
  • 丰台广州网站建设前端开发培训机构推荐
  • 网站程序代码58同城如何发广告
  • 做私服网站租给发布站谷歌排名优化入门教程
  • 深圳做公司网站营销推广有哪些形式
  • 凡科建站可以做几个网站肥城市区seo关键词排名
  • 不会写程序如何做网站网络推广运营是做什么
  • 做的新网站网上搜不到google下载安卓版
  • 网页设计师专业培训seo排名优化课程
  • 网站用的横幅广告怎么做百度竞价优化排名
  • 长沙网站自己制作域名搜索引擎
  • 杭州建设网电焊工报名入口网站seo推广计划
  • 新疆网站建设公司wordpress seo教程
  • 国外 网站源码成年学校培训班
  • 安徽建设工程信息中标seo培训
  • 做体育的网站网络营销和网络推广有什么区别
  • 柳州网站建设工作室网络营销推广方案
  • 厦门公司网站制作流程最新网络推广平台
  • 网站建设维护管理软件今日头条指数查询
  • 网站权重收录正规电商培训学校排名
  • 网站建设销售提成seo标题优化
  • 做私人网站整合营销策划
  • 2020疫情最新消息今天搜索引擎优化seo课程总结
  • 洛阳做网站找哪家好重庆seo推广运营
  • 古诗网页设计素材seo搜索优化公司