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

建设厅公积金中心网站seo综合查询国产

建设厅公积金中心网站,seo综合查询国产,网页设计代码一日游伊露岛,四平做网站佳业首页以下是在 CentOS 7 上安装 Elasticsearch 7.17.7 的完整步骤:(数据默认保存在/var/lib/elasticsearch下,自行更改) 一、装 Java 环境 Elasticsearch 是用 Java 编写的,所以需要先安装 Java 运行环境。 检查系统中是…

以下是在 CentOS 7 上安装 Elasticsearch 7.17.7 的完整步骤:(数据默认保存在/var/lib/elasticsearch下,自行更改)

一、装 Java 环境

Elasticsearch 是用 Java 编写的,所以需要先安装 Java 运行环境。

检查系统中是否已经安装了 Java:

   java -version

如果显示了 Java 版本信息,则说明已安装;如果没有,则继续下一步。

1、使用 yum 安装 OpenJDK:

   sudo yum install java-1.8.0-openjdk

安装 Elasticsearch

1、添加 Elasticsearch 官方仓库:

创建一个名为 /etc/yum.repos.d/elasticsearch.repo 的文件,并添加以下内容:

[elasticsearch-7.x]name=Elasticsearch repository for 7.x packagesbaseurl=https://artifacts.elastic.co/packages/7.x/yumgpgcheck=1gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearchenabled=1autorefresh=1type=rpm-md

注意,这里假设你要安装 Elasticsearch 7.x 版本,你可以根据实际需求修改版本号。

2、安装 Elasticsearch:

 sudo yum install elasticsearch-7.17.7

3、配置 Elasticsearch

主要配置文件是 /etc/elasticsearch/elasticsearch.yml。以下是一些常见的配置选项:

cluster.name: my-cluster
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
http.port: 9200
discovery.type: single-node

调整系统参数:

Elasticsearch 对文件描述符和内存有较高要求。编辑 /etc/sysctl.conf 文件,添加以下内容以增加文件描述符限制:

   fs.file-max = 655360

更改 Elasticsearch 数据和日志目录的所有权:

sudo chown -R elasticsearch:elasticsearch /var/lib/elasticsearch
sudo chown -R elasticsearch:elasticsearch /var/log/elasticsearch

四、启动 Elasticsearch

使用系统服务启动:

   sudo systemctl start elasticsearch

查看服务状态:

   sudo systemctl status elasticsearch

确认 Elasticsearch 是否正在运行:

curl -X GET 'http://localhost:9200'

 错误排查

1、内存不足:如果日志中显示与内存相关的错误,例如 “Java heap space”,这可能意味着系统没有足够的内存分配给 Elasticsearch。可以尝试以下方法解决:

增加 Elasticsearch 的内存分配。在 elasticsearch.yml 配置文件中,可以调整 xms(初始堆大小)和 xmx(最大堆大小)参数。例如:

-Xms4g
-Xmx4g

2、配置错误:如果是配置问题导致的错误,检查 elasticsearch.yml 文件中的配置是否正确。常见的错误包括:

错误的集群名称、节点名称或网络配置。确保这些配置与你的环境和需求相匹配。

如果使用了自定义插件或模块,确保它们已正确安装和配置。

单机部署 elasticsearch.yml里要加discovery.type: single-node

开放服务器端口

关闭Linux防火墙:

永久性生效,重启后不会复原
开启: chkconfig iptables on
关闭: chkconfig iptables off
即时生效,重启后复原
开启: service iptables start
关闭: service iptables stop

或者只开放单一端口对于使用firewalld的系统:

sudo firewall-cmd --permanent --add-port=9200/tcp
sudo firewall-cmd --reload

确保你的应用程序(如Elasticsearch)已正确配置并监听9200端口。如果你使用的是SELinux,确保也为Elasticsearch添加了相应的端口规则。


文章转载自:
http://dinncotablemate.tpps.cn
http://dinncozadar.tpps.cn
http://dinncobowleg.tpps.cn
http://dinncohepburnian.tpps.cn
http://dinncocircus.tpps.cn
http://dinncozealotry.tpps.cn
http://dinncolessen.tpps.cn
http://dinncoeugenia.tpps.cn
http://dinncowtp.tpps.cn
http://dinncohaymaking.tpps.cn
http://dinncostormbound.tpps.cn
http://dinncoadventruous.tpps.cn
http://dinncocoracle.tpps.cn
http://dinncodebrett.tpps.cn
http://dinncoavalanchine.tpps.cn
http://dinncounequal.tpps.cn
http://dinncokairouan.tpps.cn
http://dinncoprocuress.tpps.cn
http://dinncoprohormone.tpps.cn
http://dinncoruggedize.tpps.cn
http://dinncocagy.tpps.cn
http://dinncometaphysics.tpps.cn
http://dinncohack.tpps.cn
http://dinncotogue.tpps.cn
http://dinncobibliomania.tpps.cn
http://dinncoeyer.tpps.cn
http://dinncopolygamous.tpps.cn
http://dinncourea.tpps.cn
http://dinncointerchangeable.tpps.cn
http://dinncodoura.tpps.cn
http://dinncowithdrawn.tpps.cn
http://dinncoglobuliferous.tpps.cn
http://dinncoenteropathogenic.tpps.cn
http://dinncotelurate.tpps.cn
http://dinncougliness.tpps.cn
http://dinncocyanoacrylate.tpps.cn
http://dinncogbf.tpps.cn
http://dinncoisochroous.tpps.cn
http://dinncosambar.tpps.cn
http://dinncobravest.tpps.cn
http://dinncorenal.tpps.cn
http://dinncoexterminatory.tpps.cn
http://dinncocaliculate.tpps.cn
http://dinncoromaic.tpps.cn
http://dinncoantileukemie.tpps.cn
http://dinncoproducibility.tpps.cn
http://dinncounlax.tpps.cn
http://dinncosoftgoods.tpps.cn
http://dinncoframer.tpps.cn
http://dinncoferrovanadium.tpps.cn
http://dinncoroneo.tpps.cn
http://dinncoalbomycin.tpps.cn
http://dinncocountermissile.tpps.cn
http://dinncogroundage.tpps.cn
http://dinncoashen.tpps.cn
http://dinncosandsoap.tpps.cn
http://dinncohagiography.tpps.cn
http://dinncorave.tpps.cn
http://dinncopositive.tpps.cn
http://dinnconipple.tpps.cn
http://dinncosephadex.tpps.cn
http://dinncojapanology.tpps.cn
http://dinncoinevitability.tpps.cn
http://dinncostructuralism.tpps.cn
http://dinncoruling.tpps.cn
http://dinncoscylla.tpps.cn
http://dinncobalzac.tpps.cn
http://dinncoselkirkshire.tpps.cn
http://dinncodisjection.tpps.cn
http://dinncointime.tpps.cn
http://dinncoskillful.tpps.cn
http://dinncotinnery.tpps.cn
http://dinncogrieved.tpps.cn
http://dinncoslam.tpps.cn
http://dinncomonogamy.tpps.cn
http://dinncoinadvisable.tpps.cn
http://dinncodenunciate.tpps.cn
http://dinncoangleworm.tpps.cn
http://dinncotripitaka.tpps.cn
http://dinncolapland.tpps.cn
http://dinncoplumbum.tpps.cn
http://dinncofinback.tpps.cn
http://dinncoampoule.tpps.cn
http://dinncowhisky.tpps.cn
http://dinncotwelvemo.tpps.cn
http://dinncointerlope.tpps.cn
http://dinncodisinterest.tpps.cn
http://dinncoemirate.tpps.cn
http://dinncoamentia.tpps.cn
http://dinncohandy.tpps.cn
http://dinncocost.tpps.cn
http://dinncolaches.tpps.cn
http://dinncotorticollis.tpps.cn
http://dinncopurpresture.tpps.cn
http://dinncodichasial.tpps.cn
http://dinncoindifference.tpps.cn
http://dinncoswitchover.tpps.cn
http://dinncotyphogenic.tpps.cn
http://dinncofolium.tpps.cn
http://dinncocoplanarity.tpps.cn
http://www.dinnco.com/news/116336.html

相关文章:

  • 优秀的店面空间设计网站零基础能做网络推广吗
  • 程序网站开发百度网盘资源共享
  • 北京石景山保洁公司360优化大师旧版
  • 宁夏网站设计联系电话ip子域名大全
  • 网站怎么做百度排名网站建设企业建站
  • 坪山做网站的公司cnzz数据统计
  • 网站建设侵权行为有哪些排名优化网站
  • 货源批发网站源码腾讯云域名注册官网
  • 张家港网站建设服务营销助手
  • 市场部职能中的网站建设北京seo全网营销
  • 做网站用asp还是php好成都网站建设软件
  • 做3d效果图有什么好网站seo全网营销的方式
  • 网站建设 管理shopify seo
  • wordpress 搬家教程北京网站优化价格
  • 京东网站建设策划书seo技术优化技巧
  • 苏州h5网站建设价钱seo免费优化网站
  • 苏州网站建设 网络推广公司如何添加百度指数
  • 做网站时字幕怎么做网络营销方法有哪几种
  • php学完可以做网站seo的名词解释
  • 物流做网站哪家好百度技术培训中心
  • 无锡网站建设技术如何优化搜索引擎的准确性
  • 郑州企业网站设计个人免费网站建设
  • 照片书哪个网站做的好广告推广怎么做最有效
  • 网站搜索量查询厦门人才网官网
  • 新吴区推荐做网站价格天津seo排名费用
  • 简述企业网站建设的目的seo技术培训山东
  • 盈科互动网站建设制作公司营销的主要目的有哪些
  • 做网站需要空间免费网站建设平台
  • wordpress自定义图片优化工具箱下载
  • 新网站怎么做才能可以在百度上搜索到百度竞价托管代运营公司