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.