![](/img/trans.png)
[英]Executing mongoimport inside code with Javascript/Node.js
[英]Executing javascript code with node.js
我正在嘗試使用node.js執行javascript代碼,並且總是出現兩個錯誤:
.port 1無效
.port 2無效
這是我的JavaScript代碼:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');
有任何想法嗎 ?
您還有其他收聽8124的內容嗎?
netstat -an|grep :8124
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.