Solve the error report max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

This error suggests that memory is too small. So we need to modify the memory size of VM.max_map_count.

  1. Edit file
    vim /etc/sysctl.conf

  2. Add this line
    vm.max_map_count=655360

  3. Edit file sudo vim /etc/security/limits.conf , add the content

* soft memlock unlimited
* hard memlock unlimited
  1. Modify
    sudo echo "vm.swappiness=0" >> /etc/sysctl.conf

  2. Edit sudo vim /etc/systemd/system.conf

DefaultLimitNOFILE=65536
DefaultLimitNPROC=32000
DefaultLimitMEMLOCK=infinity