西数超哥博客
运维经验教程分享的博客

nginx 无法启动 错误提示nginx: [emerg] zero size shared memory zone “allips” 处理方法

前言:启动nginx服务报:Restarting nginxd (via systemctl):  Job for nginxd.service failed because the control process exited with error code. See “systemctl status nginxd.service” and “journalctl -xe” for details. ,直接使用services nginxd status 查看报如图错误,

nginx 无法启动 错误提示nginx: [emerg] zero size shared memory zone
 

[root@ebs-52272 vhost]# service nginxd status
● nginxd.service – SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
   Loaded: loaded (/etc/rc.d/init.d/nginxd; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2019-09-09 17:07:41 CST; 1min 34s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3548 ExecStart=/etc/rc.d/init.d/nginxd start (code=exited, status=1/FAILURE)
Sep 09 17:07:41 ebs-52272 systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy a…er…
Sep 09 17:07:41 ebs-52272 nginxd[3548]: Starting nginx: nginx: [emerg] zero size shared memory zone “allips”
Sep 09 17:07:41 ebs-52272 nginxd[3548]: [FAILED]
Sep 09 17:07:41 ebs-52272 systemd[1]: nginxd.service: control process exited, code=exited status=1
Sep 09 17:07:41 ebs-52272 systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse …rver.
Sep 09 17:07:41 ebs-52272 systemd[1]: Unit nginxd.service entered failed state.
Sep 09 17:07:41 ebs-52272 systemd[1]: nginxd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

我们排查发现站点配置文件中有添加limit_req参数,将该行注释后重启nginx正常,

nginx 无法启动 错误提示nginx: [emerg] zero size shared memory zone

 

赞(0) 打赏
声明:本站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,若涉及侵权请及时告知,将会在第一时间删除。本站原创内容未经允许不得转载:西数超哥 » nginx 无法启动 错误提示nginx: [emerg] zero size shared memory zone “allips” 处理方法

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏