安装 Elasticsearch 7.9.3
首先
忘记不安装了Elasticsearch 7.9.3,请做好备忘。
公式大人
这是一个公式先生。
Note: The term “公式さま” is a mixture of Japanese and Chinese. In Japanese, “さま” is an honorific suffix used to show respect when referring to someone or something. In Chinese, “公式” means “formula” or “official.” Therefore, the provided phrase can be interpreted as “Mr./Ms. Formula” in Chinese.
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-amd64.deb
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-amd64.deb.sha512
shasum -a 512 -c elasticsearch-7.9.3-amd64.deb.sha512
sudo dpkg -i elasticsearch-7.9.3-amd64.deb
因为解压.deb文件后变得很困惑,这样做不好吗……?
获得
$ ls
elasticsearch-7.9.3-amd64.deb elasticsearch-7.9.3-amd64.deb.sha512
开始
$ sudo systemctl start elasticsearch
确认
$ systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; disabled; vendo>
Active: active (running) since Tue 2021-08-03 03:17:44 UTC; 1min 10s ago
Docs: https://www.elastic.co
Main PID: 22936 (java)
Tasks: 49 (limit: 2282)
Memory: 1.2G
CGroup: /system.slice/elasticsearch.service
├─22936 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.ne>
└─23126 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux->
Aug 03 03:17:23 ubuntu2004.localdomain systemd[1]: Starting Elasticsearch...
Aug 03 03:17:44 ubuntu2004.localdomain systemd[1]: Started Elasticsearch.
确认
$ curl http://localhost:9200/_nodes/plugins?pretty
{
"cluster_name" : "elasticsearch",
"nodes" : {
"x4dTdr4DTSO7cEqDrTnzvw" : {
"version" : "7.9.3",