4

Ubuntu18.04二进制安装elasticsearch - 梨花海棠

 2 years ago
source link: https://www.cnblogs.com/xunweidezui/p/17240851.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

1. 什么是Elasticsearch

Elasticsearch 是位于 Elastic Stack 核心的分布式搜索和分析引擎。Logstash 和 Beats 有助于收集、聚合和丰富您的数据并将其存储在 Elasticsearch 中。Kibana 使您能够以交互方式探索、可视化和分享对数据的见解,并管理和监控堆栈。
Elasticsearch 为所有类型的数据提供近乎实时的搜索和分析。无论您拥有结构化或非结构化文本、数字数据还是地理空间数据,Elasticsearch 都能以支持快速搜索的方式高效地存储和索引它。您可以超越简单的数据检索和聚合信息来发现数据中的趋势和模式。随着您的数据和查询量的增长,Elasticsearch 的分布式特性使您的部署能够随之无缝增长。
官方地址: https://www.elastic.co/cn/downloads/past-releases/elasticsearch-7-10-1

1. 下载安装包

root@es-61:/usr/local/src# lsb_release  -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.6 LTS
Release:	18.04
Codename:	bionic

root@es-61:~# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-amd64.deb
root@es-61:/usr/local/src# mv /root/elasticsearch-7.10.1-amd64.deb  .

2. 使用dpkg安装

root@es-61:/usr/local/src# dpkg -i elasticsearch-7.10.1-amd64.deb 
Selecting previously unselected package elasticsearch.
(Reading database ... 67415 files and directories currently installed.)
Preparing to unpack elasticsearch-7.10.1-amd64.deb ...
Creating elasticsearch group... OK
Creating elasticsearch user... OK
Unpacking elasticsearch (7.10.1) ...
Setting up elasticsearch (7.10.1) ...
Created elasticsearch keystore in /etc/elasticsearch/elasticsearch.keystore
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.52) ...

3. 修改主配置文件

# cat /etc/elasticsearch/elasticsearch.yml
cluster.name: skywalking-es    集群名称
node.name: node-1                节点名称
network.host: 10.0.0.61         监听地址,写本机地址
http.port: 9200                      监听端口,默认为9200
discovery.seed_hosts: ["10.0.0.61"]   如果是多个节点,可以做集群选举。单实例写本机地址即可
cluster.initial_master_nodes: ["10.0.0.61"]   哪个节点可以被初始化为master节点,填写本机
action.destructive_requires_name: true     删除索引的时候必须要填写索引的完整名称,不能*去匹配

4. 启动elasticsearch

root@es-61:/usr/local/src# systemctl start elasticsearch.service
加入开机自启动
root@es-61:/usr/local/src# systemctl enable elasticsearch.service 
Synchronizing state of elasticsearch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch
Created symlink /etc/systemd/system/multi-user.target.wants/elasticsearch.service → /usr/lib/systemd/system/elasticsearch.service.

5. 检查端口是正常状态。

root@es-61:/usr/local/src# ss -tnlp 
State      Recv-Q      Send-Q                 Local Address:Port            Peer Address:Port                                                                                                         
LISTEN     0           128                    127.0.0.53%lo:53                   0.0.0.0:*          users:(("systemd-resolve",pid=956,fd=13))                                                         
LISTEN     0           128                          0.0.0.0:22                   0.0.0.0:*          users:(("sshd",pid=1226,fd=3))                                                                    
LISTEN     0           128               [::ffff:10.0.0.61]:9200                       *:*          users:(("java",pid=1921,fd=267))                                                                  
LISTEN     0           128               [::ffff:10.0.0.61]:9300                       *:*          users:(("java",pid=1921,fd=265))                                                                  
LISTEN     0           128                             [::]:22                      [::]:*          users:(("sshd",pid=1226,fd=4))                                                             

6. 验证节点信息

image
image

Recommend

  • 2656
    • www.linuxprobe.com 6 years ago
    • Cache

    在Ubuntu18上安装Deepin的DDE桌面环境

    导读 深度操作系统 15.6 发布了,新版本的桌面是不是看得手痒,但是又舍不得ubuntu 18.04,那么这篇文章一定是你想要的,那么,不要再想了,因为在这篇文章中,我们会告诉你如何做。安装前确认:最新版本的Ubuntu 18.04’Bionic Beaver’(或最新的

  • 6
    • www.cnblogs.com 2 years ago
    • Cache

    kubernetes之Deployment - 梨花海棠

    1.什么是Deployment? Deployment(简写为deploy)是kubernetes控制器的又一种实现,构建于ReplicasSet控制器之上,可以为Pod和ReplicaSet提供声明式更新。相比较而言,Pod和ReplicaSet很少用来直接使用,而是借助于控制器来使用。Dep...

  • 10

    kubernetes Deployment之滚动更新策略。 kubernetes...

  • 11

    1.什么是资源限制? 1.1在kubernetes集群中,为了使得系统能够稳定的运行,通常会对Pod的资源使用量进行限制。在kubernetes集群中,如果有一个程序出现异常,并且占用大量的系统资源,如果没有对该Pod进行资源限制的话,可能会影响其...

  • 8

    1.什么是DaemonSet? 1.1DaemonSet是Pod控制器的又一种实现方式,用于在集群中的全部节点上同时运行一份指定的Pod资源副本,后续加入集群的节点也会自动创建一个相关的Pod对象,当从集群移除节点时,此类...

  • 8

    1.什么是Service? 在kubernets中,Pod是应用程序的载体,Pod你可以想象成就是容器,为动态的一组Pod提供一个固定的访问入口,它是以一种叫ClusterIP地址来进行标识,而ClusterIP就位于我们集群网络(Cluster Network)当中,我们可以通...

  • 2

    1.什么是Dashboard Dashboard 是基于网页的 Kubernetes 用户界面。 你可以使用 Dashboard 将容器应用部署到 Kubernetes 集群中,也可以对容器应用排错,还能管理集群资源。 你可以使用 Dashboard 获取运行在集群中的应用的概览信息,...

  • 5

    未安装ArgoCD参考GitOps实践之kubernetes部署Argocd 1. 查看Argocd Service 可以看到是C...

  • 5

    1. 什么是HTTPS? HTTPS(全称:Hypertext Transfer Protocol Secure),是以安全为目标的 HTTP 通道,在HTTP的基础上通过传输加密和身份认证保证了传输过程的安全性。HTTPS在HTTP的基础下加入SSL,HTTPS的安全基础是SSL,因此加密的详细内容...

  • 13
    • www.cnblogs.com 2 years ago
    • Cache

    Nginx如何升级Openssl - 梨花海棠

    1. 什么是Openssl? 在计算机网络上,OpenSSL是一个开放源代码的软件库包,应用程序可以使用这个包来进行安全通信,避免窃听,同时确认另一端连线者的身份。这个包广泛被应用在互联网的网页服务器上。 其主要库是以C语言所写成...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK