Win7下,折腾Node.js过程中,运行服务器,其中内部调用相关代码: function show(response) { console.log("Request handler 'show' was called."); fs.readFile("/tmp/test.png", "binary", function(error, file) { if(error) { response.writeHead(500, {"Content-Type": "text/plain"}); response.write(error + "\n"); response.end(); } else { response.writeHead(200, {"Content-Type": "image/png"}); response.write(file, "binary"); response.end(); } }); } 去重命名,结果出错: D:\tmp\tmp_dev_root\ […]