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

建立网站的英文互站网

建立网站的英文,互站网,木模板价格,成立网站的意义安装es 下载elasticsearch安装包解压安装包,并修改配置文件解压进入目录修改配置文件 添加用户,并修改所有者切换用户,运行es如何迁移旧版本的数据 下载elasticsearch安装包 下载地址如下,版本号可以替换成自己想要的。 这里需要注意一点&am…

安装es

  • 下载elasticsearch安装包
  • 解压安装包,并修改配置文件
    • 解压
    • 进入目录
    • 修改配置文件
  • 添加用户,并修改所有者
  • 切换用户,运行es
  • 如何迁移旧版本的数据

下载elasticsearch安装包

下载地址如下,版本号可以替换成自己想要的。

这里需要注意一点,需要根据你服务器的内核来进行选择,如下图所示,我就应该选择aarch64版本的,否则运行的时候会报错cannot execute binary file: Exec format error
在这里插入图片描述

https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-linux-aarch64.tar.gz
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-linux-x86_64.tar.gz

解压安装包,并修改配置文件

解压

tar -zxvf elasticsearch-7.9.3-linux-aarch64.tar.gz

进入目录

cd elasticsearch-7.9.3

修改配置文件

vi config/elasticsearch.yml

有以下几点需要修改

  1. 放开node.name这个注释
  2. 放开path.data、path.log注释,并修改成你想要存放的位置
  3. 修改network.host为0.0.0.0让其可以被IP访问
  4. 修改cluster.initial_master_nodes 值为第一步配置的名字

下面是修改后的配置文件内容:

# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
#cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /home/alllinks/elasticsearch-7.9.3/data
#
# Path to log files:
#
path.logs: /home/alllinks/elasticsearch-7.9.3/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- 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: 9205
#
# 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: ["host1", "host2"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true

添加用户,并修改所有者

elasticsearch需要非root用户运行,所以需要添加用户并修改elastielcsearch-7.9.3的所有者,命令如下
useradd es
chown es:es -R elastielcsearch-7.9.3

切换用户,运行es

su es
cd /elastielcsearch-7.9.3/bin
./elasticsearch -d

如何迁移旧版本的数据

如果有旧版本的数据的话可以将旧版本的数据直接cp到data目录下就好,但是需要注意版本,具体可以访问http://es服务器ip:9200。查看返回值minimum_wire_compatibility_version、minimum_index_compatibility_version

http://www.dinnco.com/news/25853.html

相关文章:

  • 微信做淘宝优惠券但网站是怎么建设但问卷调查网站
  • 在虚拟机做网站整站优化代理
  • 服装网站建设方案旅游营销推广方案
  • 名片在哪个网站可以做深圳百度推广竞价托管
  • 最好的网站开发公司电话外贸营销型网站
  • 网站开发外包维护合同郑州seo优化外包
  • win7做系统网站哪个好新网
  • 职业生涯规划大赛演讲稿东莞百度seo排名
  • 网站正在维护中html百度认证考试
  • 网站 建设 步骤是百度识图在线识别
  • 做网站的时候怎么照片路径游戏挂机赚钱一小时20
  • 昆明建网站公司廊坊seo
  • 内部优惠券网站建站cms
  • 增城企业网站建设友情链接2598
  • 票务网站开发端口百度关键词seo推广
  • 免费自建网站工具农产品推广方案
  • 开公司怎么找客户seo工具查询
  • 网站的建设价格建立个人网站
  • 武昌有专业做网站如何免费推广自己的产品
  • 平顶山市住房和城乡建设局网站百度广告投放价格
  • 手机宣传网站5118站长网站
  • wordpress文章页折叠互联网优化是什么意思
  • 做网站编辑工作累吗中国站长之家
  • 网站建设与管理知识点乐事薯片软文推广
  • c 网站开发 调试网页自助建站
  • 亿赐客网站谷歌官网下载
  • wordpress能做图片站怎么做营销推广方案
  • 衡阳北京网站建设百度手机版下载
  • 外贸公司怎么运作佛山抖音seo
  • 企业网站公示怎么做免费做网站的网站