dos命令大全
http://jingyan.baidu.com/article/8cdccae99f3d46315513cd47.html
sublime text3配置nodejs運行環(huán)境:https://my.oschina.net/ximidao/blog/413101
1.安裝好nodejs運行環(huán)境,寫了一段代碼:
var http=require('http');
http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'text-plain'});
res.end('hello world\n');
}).listen(1337,'127.0.0.1');
console.log('Server runnig at http://127.0.0.1:1337');
2.控制臺顯示http://127.0.0.1:1337,但是瀏覽器始終無法訪問;
3.linux命令錯誤如下:
module.js:340
throw err;
^
Error: Cannot find module '/home/wenjiang/hellO.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
4.我的解決方法是,把js文件放在nodejs目錄下,直接將文件拖到nodejs運行器上
最后成功顯示