在localhost:8081启动服务器是否会产生互联网连接问题?

时间:2016-10-16 06:45:57

标签: node.js http webserver localhost webservice-client

我在本地主机启动了一台服务器:8081为

var http = require("http");  
http.createServer(function (request, response) {  
 // Send the HTTP header   
   // HTTP Status: 200 : OK  
   // Content Type: text/plain  
   response.writeHead(200, {'Content-Type': 'text/plain'});  
   // Send the response body as "Hello World"  
   response.end('Hello World\n');  
}).listen(8081);  
// Console will print the message  
console.log('Server running at http://127.0.0.1:8081/');

启动服务后,我无法访问互联网。请帮帮我。

0 个答案:

没有答案