官网安装教程(英文版) https://www.elastic.co/guide/en/elasticsearch/reference/7.10/deb.html
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- sudo apt-get install apt-transport-https
- echo “deb https://artifacts.elastic.co/packages/7.x/apt stable main” | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
- sudo apt-get update && sudo apt-get install elasticsearch
- ps -p 1
- (启动命令)sudo systemctl start elasticsearch.service,(停止命令)sudo systemctl stop elasticsearch.service
- ps -ef|grep elasticsearch
- 访问一下localhost:9200,出现下面的文字就是成功了哦。