두 개의 node.js 파일을 koding.com에 업로드하고 실행하려고합니다.koding.com의 nodejs 앱에 액세스
하는 index.js가 포함
var server = require("./server");
server.start();
을 그리고
var http = require("http");
var url = require("url");
function start() {
function onRequest(request, response) {
console.log("Request received.");
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}
http.createServer(onRequest).listen(6665, '0.0.0.0');
console.log("Server has started.");
}
exports.start = start;
내가 메신저 http://jstq.kd.io/IkapNodeJS/index.js에가는 경우 나에게 Server has started.
을 제공 VM 터미널 [email protected]:~$ node Web/IkapNodeJS/index.js
에 입력 server.js - 내가하는 index.js 참조 포함. 메신저를 추가 할 때 : 해당 url에 6665 - url을 찾을 수 없습니다.
안녕하세요. 안녕하세요. 안녕하세요.
: 해당 URL을 클릭하면 알 수없는 error.'을. –
** ** 이렇게 작동해야합니다. 지금 koding.com에 문제가있는 것으로 보입니다. 다음 주제에 대한 토론이 있습니다 : https://koding.com/Activity/nodejs-4. 또한 위키 : http://kwiki.koding.com/wiki/Nodejs – aaronfay
btw가 사설 VM에서 작동하는 것으로 보입니다. 현재 공유 환경에서만이 문제를 겪고 있습니다. – aaronfay