nginx重启起不来之内存不够

重启nginx时候起不来了,发现是内存不够了

● nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 五 2019-05-17 13:38:54 CST; 12s ago
  Process: 26358 ExecStop=/usr/local/openresty/nginx/sbin/nginx -s quit (code=exited, status=0/SUCCESS)
  Process: 26297 ExecReload=/usr/local/openresty/nginx/sbin/nginx -s reload (code=exited, status=0/SUCCESS)
  Process: 27193 ExecStart=/usr/local/openresty/nginx/sbin/nginx (code=exited, status=1/FAILURE)
 Main PID: 26432 (code=exited, status=0/SUCCESS)

5月 17 13:38:54 prod-002 systemd[1]: Starting The nginx HTTP and reverse proxy server...
5月 17 13:38:54 prod-002 nginx[27193]: nginx: [alert] lua_code_cache is off; this will hurt performance in /usr/local/openresty/nginx/conf/vhosts/maliang_blog.conf:43
5月 17 13:38:54 prod-002 systemd[1]: nginx.service: control process exited, code=exited status=1
5月 17 13:38:54 prod-002 nginx[27193]: nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 262144000) failed (12: Cannot allocate memory)
5月 17 13:38:54 prod-002 systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
5月 17 13:38:54 prod-002 systemd[1]: Unit nginx.service entered failed state.
5月 17 13:38:54 prod-002 systemd[1]: nginx.service failed.

发表新评论