<p>[root@host38 www.ctohome.com]# mynginx test<br />the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok<br />[alert]: mmap(MAP_ANON|MAP_SHARED, 52428800) failed (28: No space left on device)<br />configuration file /usr/local/nginx/conf/nginx.conf test failed</p><p> </p><p>如果是做了proxy cache的nginx,别管机器配置,直接调这个设置。<br /> proxy_cache_path /backup/nginx_cache/proxy_cache_dir levels=1:2 keys_zone=ctohome:50m inactive=1d max_size=3g;把cache_one值改成20m就可以了。</p><p>[root@host38 www.ctohome.com]# mynginx test<br />the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok<br />configuration file /usr/local/nginx/conf/nginx.conf test is successful</p><p>说明这个<span style="color:#ff00;">No space left on device</span>可能是指的内存。有些openvz的vps,内存看起来大,但实际用不了。</p><br />