Download the installation package to the elasticSearch directory
Wget HTTP: / / https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.2.tar.gzCopy the code
Decompress the installation package
The tar - ZXVF elasticsearch - 6.6.2. Tar. GzCopy the code
Set the Internet access permission
CD elasticsearch 6.6.2 / config vi elasticsearch. YmlCopy the code
Change the configuration item to network.host:0.0.0.0
Example Modify the system environment variable vm.max_map_count
vi /etc/sysctl.conf
Copy the code
Add the following information at the end (the information takes effect after a restart) :
vm.max_map_count=262144
Copy the code
Modify the JVM allocation size
CD elasticsearch 6.6.2 / config vi JVM. The optionsCopy the code
Change the following content (note that Xms and Xmx should be set to the same, generally recommended to be half of the memory) :
Modify the maximum number of file descriptors and the maximum number of user threads
vi /etc/security/limits.conf
Copy the code
Modify the following contents (if each item is larger than the following configuration) :
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096
Copy the code
Start (disable root start)
CD elasticsearch - 6.6.2 / bin. / elasticsearch - dCopy the code
Check whether the startup is successful
ps -ef|grep elasticsearch
Copy the code