ubantu-elasticsearch

在Ubuntu上安装Elasticsearch的步骤如下:

1.导入Elasticsearch公钥:

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

2.添加elasticsearch到APT源列表

echo "deb https://artifacts.elastic.co/packages/7.3.1/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.3.1.list

3.更新包索引

sudo apt-get update

4.安装elasticsearch

sudo systemctl install elasticsearch

5.启动elasticsearch服务

sudo systemctl start elasticsearch.service

6.设置系统自启动

sudo systemctl enable elasticsearch.service

7.验证elasticsearch是否运行

curl -X GET "localhost:9200"

相关推荐
桌面运维家1 小时前
IDV云桌面vDisk机房网络管控访问限制部署方案
运维·服务器·网络
ShineWinsu2 小时前
对于Linux:动静态库的制作与原理的解析—下
linux·运维·服务器·进程·链接·虚拟地址空间·
KKKlucifer3 小时前
国内堡垒机如何打通云网运维安全一体化
运维·安全
wydd99_lll4 小时前
docker特权模式下逃逸
运维·docker·容器
mseaspring5 小时前
一款用于监控跨多台主机 Docker 容器的实时终端
运维·docker·容器
NineData5 小时前
NineData 亮相香港国际创科展 InnoEX 2026,以 AI 加速布局全球市场
运维·数据库·人工智能·ninedata·新闻资讯·玖章算术
阿里云大数据AI技术6 小时前
深度回顾 | 阿里云携手 Elastic 定义 Agent 时代搜索新范式,解锁 Search AI 核心生产力
elasticsearch·agent
RisunJan6 小时前
Linux命令-ngrep(方便的数据包匹配和显示工具)
linux·运维·服务器
热爱Liunx的丘丘人6 小时前
Ansible-doc及常用模块
linux·运维·服务器·ansible
tianyuanwo7 小时前
OS/DevOps程序员切入Harness Engineering的入门与进阶指南
运维·devops·harness