apache启动报 shmget() failed: Invalid argument的解决方法
在用的apache服务器,启动报错:
代码如下:
shmget() failed: Invalid argument
Failed to start up concurrent users module!
Failed to start up concurrent users module!
经检查为kernel.shmmax设置未生效(copy另一系统的,数值设置大了)
如下:
代码如下:
[root@localhost ~]# sysctl -a | grep shmm
kernel.shmmni = 4096
kernel.shmmax = 0
kernel.shmmni = 4096
kernel.shmmax = 0
[root@localhost ~]# vi /etc/sysctl.conf
kernel.shmmax = 2147483648
kernel.shmall = 1073742
[root@localhost ~]# sysctl -p
[root@localhost ~]# sysctl -a | grep shm
vm.hugetlb_shm_group = 0
kernel.shmmni = 4096
kernel.shmall = 1073742
kernel.shmmax = 2147483648