Solution:
1. Switch to the root user to modify the configuration sysctl.conf
vi /etc/sysctl.conf
- 1
Add the following configuration:
vm.max_map_count=655360
- 1
and execute the command:
sysctl -p
- 1
Then, restart elasticsearch to start successfully.