Some time ago I described Elasticsearch installation in version 2.x today guide on how to install it in version 6.x
Let's get started!
At the beginning of the standard Java installation:
yum install java-1.8.0-openjdk-devel
You can check the version of the java command:
java -version
You will get something like this:
openjdk version "1.8.0_201" OpenJDK Runtime Environment (build 1.8.0_201-b09) OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode)
Elastica key charge
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
we create a repository:
nano /etc/yum.repos.d/elasticsearch.repo
The content:
[elasticsearch-6.x] name=Elasticsearch repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
we make install :
yum install elasticsearch
run service:
sudo systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service
It remained practically the whole work we made some editing in the same configuration elasticsearch we released it to the world.
We do edit the file /etc / elasticsearch / elasticsearch.yml
nano /etc/elasticsearch/elasticsearch.yml
and change:
# ------------------------------------ Node ------------------------------------ # # Use a descriptive name for the node: # node.name: node-1 # # Add custom attributes to the node: # #node.rack: r1 # # ----------------------------------- Paths ------------------------------------
node.name: node 1 should be commented on.
next
# ---------------------------------- Network ----------------------------------- # # Set the bind address to a specific IP (IPv4 or IPv6): # network.host: IPSERWERA # # Set a custom port for HTTP: # http.port: 9200 # # For more information, see the documentation at: #
Then, from commenting 2 options:
network.host: IPSERWERA and give your server ip and vps
http.port: 9200 – jest to port pod którym widzimy elasticsearch w internecie
after making these changes we can save and run the script.
service elasticsearch start
If everything goes correctly at IPSERWERA:9200 we should see something like this:
{ "name" : "node-1", "cluster_name" : "elasticsearch", "cluster_uuid" : "v84rLjnsR5WpbiYapg7-Dg", "version" : { "number" : "6.8.1", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "1fad4e1", "build_date" : "2019-06-18T13:16:52.517138WITH", "build_snapshot" : false, "lucene_version" : "7.7.0", "minimum_wire_compatibility_version" : "5.6.0", "minimum_index_compatibility_version" : "5.0.0" }, "tagline" : "You Know, for Search" }
Everything works perfectly fine 🙂
If you do not see SRON must add a port 9200 do allow firewalla.
The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń…
Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji…
Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w…
You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania…
Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.…
The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy…