Elasticsearch Tutorial For Beginners – start with the installation on Ubuntu LinuxContainer (LXC) in Proxmox

root@pve-02:~# pveam update
update successful
root@pve-02:~# pveam available
root@pve-02:~# pveam download local ubuntu-20.04-standard_20.04-1_amd64.tar.gz
root@pve-02-ubuntu-2:~# apt-get update -y
root@pve-02-ubuntu-2:~# apt-get full-upgrade -y

 

root@pve-02-ubuntu-2:~# wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add –
OK
root@pve-02-ubuntu-2:~# apt-get install apt-transport-https
root@pve-02-ubuntu-2:~# echo „deb https://artifacts.elastic.co/packages/7.x/apt stable main“ | tee -a /etc/apt/sources.list.d/elastic-7.x.list
deb https://artifacts.elastic.co/packages/7.x/apt stable main
root@pve-02-ubuntu-2:~# apt-get install elasticsearch
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
elasticsearch
0 upgraded, 1 newly installed, 0 to remove and 139 not upgraded.
Need to get 326 MB of archives.
After this operation, 543 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 elasticsearch amd64 7.12.1 [326 MB]
Fetched 326 MB in 29s (11.2 MB/s)
Selecting previously unselected package elasticsearch.
(Reading database … 17774 files and directories currently installed.)
Preparing to unpack …/elasticsearch_7.12.1_amd64.deb …
Creating elasticsearch group… OK
Creating elasticsearch user… OK
Unpacking elasticsearch (7.12.1) …
Setting up elasticsearch (7.12.1) …
Created elasticsearch keystore in /etc/elasticsearch/elasticsearch.keystore
Processing triggers for systemd (245.4-4ubuntu3) …
root@pve-02-ubuntu-2:~# /bin/systemctl daemon-reload
root@pve-02-ubuntu-2:~# /bin/systemctl enable elasticsearch.service
Synchronizing state of elasticsearch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch
Created symlink /etc/systemd/system/multi-user.target.wants/elasticsearch.service -> /usr/lib/systemd/system/elasticsearch.service.
root@pve-02-ubuntu-2:~# /bin/systemctl daemon-reload
root@pve-02-ubuntu-2:~# /bin/systemctl enable elasticsearch.service
Synchronizing state of elasticsearch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch
Created symlink /etc/systemd/system/multi-user.target.wants/elasticsearch.service -> /usr/lib/systemd/system/elasticsearch.service.
root@pve-02-ubuntu-2:~# systemctl start elasticsearch.service
root@pve-02-ubuntu-2:~# apt-get install curl
root@pve-02-ubuntu-2:~# curl http://localhost:9200
{
„name“ : „pve-02-ubuntu-2“,
„cluster_name“ : „elasticsearch“,
„cluster_uuid“ : „4V-Zj5WdRfCW4CXFRcez7Q“,
„version“ : {
„number“ : „7.12.1“,
„build_flavor“ : „default“,
„build_type“ : „deb“,
„build_hash“ : „3186837139b9c6b6d23c3200870651f10d3343b7“,
„build_date“ : „2021-04-20T20:56:39.040728659Z“,
„build_snapshot“ : false,
„lucene_version“ : „8.8.0“,
„minimum_wire_compatibility_version“ : „6.8.0“,
„minimum_index_compatibility_version“ : „6.0.0-beta1“
},
„tagline“ : „You Know, for Search“
}

Leave a Reply

You must be logged in to post a comment.