当我在我的虚拟机上安装 elasticsearch 时,elasticsearch 无法正常启动。
我尝试这样做:vi /etc/security/limits.conf
vi /etc/security/limits.d/90-nproc.conf
vi /etc/sysctl.conf vm.max_map_count=655360
[es@test elasticsearch-7.3.1]$ ./bin/elasticsearch
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2019-09-10T22:52:12,836][INFO ][o.e.e.NodeEnvironment ] [test] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [35.4gb], net total_space [39.9gb], types [rootfs]
[2019-09-10T22:52:12,850][INFO ][o.e.e.NodeEnvironment ] [test] heap size [989.8mb], compressed ordinary object pointers [true] …
Run Code Online (Sandbox Code Playgroud)