首页 > 其他分享 >elasticsearch7.8.0部署

elasticsearch7.8.0部署

时间:2023-06-15 10:57:49浏览次数:45  
标签:node elasticsearch7.8 tar 部署 max elasticsearch 7.8

elasticsearch7.8.0部署

复制下载链接地址,并使用 wget 命令下载对应的压缩包。例如:

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.0-linux-x86_64.tar.gz

下载完成后,解压压缩包:

tar -xzvf elasticsearch-7.8.0-linux-x86_64.tar.gz

进入解压后的目录:

cd elasticsearch-7.8.0/

启动 Elasticsearch:

bin/elasticsearch

问题一:

future versions of Elasticsearch will require Java 11; your Java version from
[/usr/local/java/jdk1.8.0_371/jre] does not meet this requirement

在不想安装JDK11的情况下,可以使用ElasticSearch 内置的JDK
在/usr/local/elasticsearch/bin目录下vim elasticsearch-env:大约39至50行定义了jdk的选择方法
删除勾选内容

或者指定export JAVA_HOMEjdk11安装位置

问题二:使用root启动会报错:can not run elasticsearch as root

1、创建用户:elasticsearch

adduser elasticsearch

2、创建用户密码,需要输入两次

passwd elasticsearch

3、将对应的文件夹权限赋给该用户

chown -R elasticsearch elasticsearch-7.8.0

4、切换至elasticsearch用户

su elasticsearch

5、使用后台启动方式:

./elasticsearch -d

6、启动后测试

输入curl ip:9200,如果返回一个json数据说明启动成功

问题三:只能本地访问

修改config下的elasticsearch.yml

node.name: node-1
network.host: 0.0.0.0

cluster.initial_master_nodes: ["node-1"]
http.cors.enabled: true
http.cors.allow-origin: "*"

问题四:

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

ulimit -n 65535

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

sysctl -w vm.max_map_count=262144

标签:node,elasticsearch7.8,tar,部署,max,elasticsearch,7.8
From: https://www.cnblogs.com/hwjShl/p/17478260.html

相关文章

  • TrueNAS CORE 13.0-U5.1 TrueNas存储平台 安装部署设置
    Truenas官网地址:https://www.truenas.com/下载TrueNASCORE13.0-U5.1服务器配置要求:CPU四核心内存8G硬盘按需求一、安装:与FREENAS一样(忽略)二、开始配置配置网卡信息说明开始配置网卡信息即可,因此我们选择第一项:三、浏览器访问TrueNas我们可以Https访问也可http访问......
  • 【Azure 应用服务】Azure Function App在部署时候遇见 503 ServiceUnavailable
    问题描述在VSCode中编写好AzureFunctionApp代码后,通过 funcazurefunctionapppublish部署失败,抛出503ServiceUnavailable错误。Gettingsitepublishinginfo...Creatingarchiveforcurrentdirectory...Performingremotebuildforfunctionsproject.Deleting......
  • DeepSurvk部署教程
    DeepSurvk部署教程作者:千树、Totorogithub项目地址https://github.com/arturomoncadatorres/deepsurvkPypi项目地址https://pypi.org/project/deepsurvk/一、DeepSurvk简介项目作者原话(翻译)DeepSurv是一种Cox比例风险深度神经网络,用于模拟患者协变量与治......
  • 【Azure 应用服务】Azure Function App在部署时候遇见 503 ServiceUnavailable
    问题描述在VSCode中编写好AzureFunctionApp代码后,通过 funcazurefunctionapppublish部署失败,抛出503ServiceUnavailable错误。Gettingsitepublishinginfo...Creatingarchiveforcurrentdirectory...Performingremotebuildforfunctionsproject.Dele......
  • 网站如何部署CDN网络?
    本文将介绍CDN的定义、优势以及如何为网站部署CDN网络。通过阅读本文,您将了解CDN如何提高网站性能、降低延迟并提高用户体验。一、CDN定义CDN(ContentDeliveryNetwork,内容分发网络)是一种分布式网络系统,通过将网站内容缓存在全球范围内的多个服务器上,使用户能够从离他们最近的服......
  • tomcat部署web项目
     把程序的war包放在/usr/local/tomcat/webapps/下自动解压部署[root@centos8webapps]#lsdocsexampleshost-managerapp1app1.warmanagerROOT直接访问http://ip:8080/app1ROOT是根目录直接访问http://ip:8080 TRANSLATEwithxEnglishArabicHe......
  • jenkins 自动化部署 flink job
    JenkinsfiledefdeployIp='192.168.1.53'defremote=[:]remote.name=deployIpremote.host=deployIpremote.user='root'remote.password=LCX_PWD_5sremote.allowAnyHosts=truedefgitUrl='http://192.168.1.43:8600/bigda......
  • 云原生之使用docker部署httpd服务
    (云原生之使用docker部署httpd服务)一、检查系统版本[root@node~]#cat/etc/os-releaseNAME="CentOSLinux"VERSION="7(Core)"ID="centos"ID_LIKE="rhelfedora"VERSION_ID="7"PRETTY_NAME="CentOSLinux7(Core)"AN......
  • k8s相关部署文件
    1.控制器1.生成后改改kubectlcreatedeploymentcoreqi-api--image=docker.io/fanqi/coreqi_api:latest--dry-run=client-oyaml>/home/coreqi_dm.yaml2.手撸apiVersion:apps/v1kind:Deploymentmetadata:creationTimestamp:nullgeneration:1labels:......
  • 服务器部署多个tomcat
    服务器部署多个tomcat:所用Tomcat服务器都为版(本例用的是apache-tomcat-6.0.18)。操作步骤:解压apache-tomcat-6.0.18.zip在\conf目录中打开server.xml:修改以下配置: (1)修改Shutdown端口(默认为8005端口):        例:<Serverport="8005"shutdown="SHUTDOWN">(大概在21行左......