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 "allips" 处理方法
 

[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 "allips" 处理方法

 

西数超哥学习乐园,西数超哥基础运维经验教程分享的学习乐园,西数超哥博客,运维经验教程交流学习分享的博客

原创文章,作者:zhang sir,如若转载,请注明出处:https://www.ysidc.top/7618.html