The installation
Wget tar - XZF at https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.0-linux-x86_64.tar.gz Elasticsearch - 7.8.0 - Linux - x86_64. Tar. GzcdElasticsearch 7.8.0 /Copy the code
configuration
Configure ElasticSearch to allow remote access, configure cluster node (currently only one node)
# config/elasticsearch.yml
node.data : trueNetwork.host: 0.0.0.0 discovery.seed_hosts: [] cluster.initial_master_nodes: []Copy the code
Set the maximum number of files that can be opened by a user
#/etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096
Copy the code
Elasticsearch starts in the background
./bin/elasticsearch -d
Copy the code
View the ElasticSearch process
ps aux | grep elasticsearch
Copy the code
test
Access elasticSearch host IP+9200 port
The curl http://111.229.117.203:9200/Copy the code