编辑/etc/sysctl.conf,增加下列内容 kernel.shmmni=1024 kernel.shmmax=4294967296 kernel.shmall=2097152 kernel.sem=250 256000 32 1024 kernel.msgmni=4096 kernel.msgmax=65536 kernel.msgmnb=65536 vm.dirty_background_ratio = 5 vm.dirty_ratio = 10 vm.swappiness = 5 vm.overcommit_memory = 0