在iisnode上运行节点应用程序时出现EACCES错误

时间:2013-10-06 07:12:07

标签: node.js iisnode

我正在努力使用iisnode在IIS上运行一个简单的节点应用程序。这是应用程序:

var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/html'});
    res.end('Hello, world! [helloworld sample; iisnode version is ' +
        process.env.IISNODE_VERSION + ', node version is ' + 
        process.version + ']');
}).listen(process.env.PORT);  

这是我得到的错误:

Application has thrown an uncaught exception and is terminated:
Error: listen EACCES
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1020:19)
    at listen (net.js:1061:10)
    at Server.listen (net.js:1127:5)
    at Object.<anonymous> (C:\Program Files\iisnode\www\helloworld\hello.js:6:4)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

因为这是在我的开发箱上,我已经给了app_pool超级用户权限但是没有帮助。

0 个答案:

没有答案