Nginx错误mmap failed (28: No space left on device)解决办法
  • Nginx错误mmap failed (28: No space left on device)解决办法

    [root@host38 www.654z.com]# mynginx test
    the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    [alert]: mmap(MAP_ANON|MAP_SHARED, 52428800) failed (28: No space left on device)
    configuration file /usr/local/nginx/conf/nginx.conf test failed

     

    如果是做了proxy cache的nginx,别管机器配置,直接调这个设置。
     proxy_cache_path /backup/nginx_cache/proxy_cache_dir levels=1:2 keys_zone=654z:50m inactive=1d max_size=3g;把cache_one值改成20m就可以了。

    [root@host38 www.654z.com]# mynginx test
    the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    configuration file /usr/local/nginx/conf/nginx.conf test is successful

    说明这个No space left on device可能是指的内存。有些openvz的vps,内存看起来大,但实际用不了。

  •  

  • 点这里复制本页地址发送给您QQ/MSN上的好友
  • 300*300广告