周梦康 发表于 2015-06-08 4837 次浏览 标签 : node.js

对 node.js 的认识很浅,代码是参考我同事@振耀的.先做个标记,日后解决了再完善笔记.

Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:690:11)
    at ServerResponse.header (xxx/node_modules/express/lib/response.js:695:10)
    at ServerResponse.res.contentType.res.type (xxx/node_modules/express/lib/response.js:532:15)
    at Command.callback (xxx/app.js:81:17)
    at RedisClient.return_error (xxx/node_modules/redis/index.js:571:25)
    at ReplyParser.<anonymous> (xxx/node_modules/redis/index.js:317:18)
    at ReplyParser.emit (events.js:95:17)
    at ReplyParser.send_error (xxx/node_modules/redis/lib/parser/javascript.js:296:10)
    at ReplyParser.execute (xxx/node_modules/redis/lib/parser/javascript.js:181:22)
    at RedisClient.on_data (xxx/node_modules/redis/index.js:547:27)
Program node app.js exited with code 8
还有为什么我执行的命令是/usr/local/bin/supervisor /data/www/lbs/app.js而显示的却是node /usr/local/bin/supervisor /data/www/lbs/app.js

👇 下面是我的公众号,高质量的博文我会第一时间同步到公众号,给个关注吧!

评论列表