Nginx启动报错ngx_slab_alloc() failed: no memory

Nginx添加后端upstream后,启动Nginx的时候有以下报错:

nginx: [crit] ngx_slab_alloc() failed: no memory
nginx: [emerg] http upstream check_shm_size is too small, you should specify a larger size.
已邀请:

chris - 喜欢自由散漫的我

如上报错说的很清楚,是nginx设置的check_shm_size设置的比较小,默认值为1M, 我们想要给他设置更大一点,在Nginx.conf http{} 配置区域添加 check_shm_size 5m; 即可。

要回复问题请先登录注册