首先执行
sudo vim /etc/sysctl.conf
接着修改如下:
# 32G
# kernel.msgmnb = 34359738368
# 16G
# kernel.msgmnb = 17179869184
# 8G
# kernel.msgmnb = 8589934592
# 4G
# kernel.msgmnb = 4294967296
# 2G
# kernel.msgmnb = 2147483648
# 1G
kernel.msgmnb = 1073741824
再执行
sudo sysctl -p