NodeJS dev environment configure
2013-11-28 12:01
435 查看
简述:
记录NodeJS Eclipse开发环境配置
步骤:
1. 本地安装Nodejs的exe
http://nodejs.org/dist/v0.10.22/node-v0.10.22-x86.msi
安装完成之后进入command
2. 进入Eclipse Marketplace
安装(参考:http://www.yl-blog.com/index.php/js/95.html)
此外下载一个javascript 的插件VJET
http://download.eclipse.org/vjet/updates-0.10
一款调试工具 google调试工具
http://chromedevtools.googlecode.com/svn/update/dev/
2. 下载之后新建一个项目
3. 工程创建完成
4. cmd进入项目路径
输入:
5. 代码
6. 页面访问:
记录NodeJS Eclipse开发环境配置
步骤:
1. 本地安装Nodejs的exe
http://nodejs.org/dist/v0.10.22/node-v0.10.22-x86.msi
安装完成之后进入command
2. 进入Eclipse Marketplace
安装(参考:http://www.yl-blog.com/index.php/js/95.html)
此外下载一个javascript 的插件VJET
http://download.eclipse.org/vjet/updates-0.10
一款调试工具 google调试工具
http://chromedevtools.googlecode.com/svn/update/dev/
2. 下载之后新建一个项目
3. 工程创建完成
4. cmd进入项目路径
输入:
node hello-world-server.js
5. 代码
var http1 = require('http'); http1.createServer(function handler(req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Welcome !\n'); }).listen(10723, '192.168.2.191'); console.log('Server running at http://192.168.2.191:10723/'); var http2 = require('http'); http1.createServer(function handler(req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Welcome !\n'); }).listen(10724, 'localhost'); console.log('Server running at http://localhost:10724/');
6. 页面访问:
相关文章推荐
- nodejs express route 的用法
- nodejs express route 的用法
- C++作业:用节点node表示多项式的系数和次数,编程合并两个链式表达的多项式
- CCSpriteBatchNode 和 CCTextureAtlas 详解
- mac 下 node-qrcode的二维码库
- 关于nodejs的一些配置的小结(工作小结)
- Node.js的模块载入方式与机制
- 到底什么是inode?
- Cluster中3个Nodes挂掉2个,恢复Recovery Pending的DB的方案探索(续)
- Nodejs 基础
- Node.js的模块载入方式与机制
- Hadoop put 报异常“could only be replicated to 0 nodes, instead of 1”
- Understanding node.js
- LeetCode Remove Nth Node From End of List 删除倒数第n个元素
- 《了不起的Node.js》读后感
- leetcode: Remove Nth Node From End of List
- nodejs
- 专门针对初学者的Node.js教程
- windows下node.js安装教程图文详解
- CCNode