安装Elasticsearch

一种选择:公式先生

根据该公式的说明

存储库会被更新为最新的吗?
会有新的版本出现吗?

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

开始 –

sudo systemctl start elasticsearch.service

确认

ps aux | grep elasticsearch
ifconfig
curl -XGET 127.0.0.1:9200/_cat/health?v&pretty
curl http://localhost:9200/_nodes/plugins?pretty
广告
将在 10 秒后关闭
bannerAds