0

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 スーパーユーザー権限を与えましたが、それは役に立ちませんでした.

4

0 に答える 0