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"

相关推荐
H_老邪1 小时前
Linux 与 Docker 常用命令
linux·运维·服务器·docker
博语小屋1 小时前
I/O 多路转接之epoll
运维·服务器·数据库
新钛云服1 小时前
如何构建一套自动化的阿里云费用报告系统
运维·阿里云·自动化·云计算
allway22 小时前
Debian Regular Expressions
运维·debian·scala
文静小土豆2 小时前
Linux 进程终止指南:理解 kill 与 kill -9 的核心区别与正确用法
linux·运维·服务器
IMPYLH2 小时前
Linux 的 df 命令
linux·运维·服务器
wefg12 小时前
【Linux】会话、终端、前后台进程
linux·运维·服务器
zhixingheyi_tian2 小时前
Linux/Windows 免密登录
linux·运维·服务器
BPM_宏天低代码2 小时前
【宏天技术】企业CRM系统架构:微服务设计实践
运维
Eine .2 小时前
Docker容器技术
运维·docker·容器