node.js初步使用
2017-05-27 07:41
267 查看
node.js 中文网 :http://nodejs.cn 下载node windows情况下自带npm 而如果是Linux的情况下 需要自己去下载npm
安装过程 一路next即可 最后配置下环境变量 NODE_PATH : 你安装node的路径 node安装配置成功
var http=require('http');
http.createServer(function (request,response){
response.writeHead(200,{'Content-Type':'text/plain'})
response.end("hello,world\n");
}).listen(8000);
console.log('Server runing at http://127.0.0.1:8000');
页面上输入 localhost:8000
即可看到输出helloworld
非常简单
安装过程 一路next即可 最后配置下环境变量 NODE_PATH : 你安装node的路径 node安装配置成功
var http=require('http');
http.createServer(function (request,response){
response.writeHead(200,{'Content-Type':'text/plain'})
response.end("hello,world\n");
}).listen(8000);
console.log('Server runing at http://127.0.0.1:8000');
页面上输入 localhost:8000
即可看到输出helloworld
非常简单
相关文章推荐
- node.js-express框架的初步使用。
- NodeJS+Solr初步使用
- Node.js学习(一)——Node.js的安装和express初步使用
- Node.js使用的场景 (翻译自Node.js早期贡献者Felix的文章)
- 服务器端的JavaScript脚本 Node.js 使用入门
- 在Windows Azure中使用Node.js,开启云计算之旅!
- 在Windows Azure中使用Node.js,开启云计算之旅!
- node.js入门甜点,使用node.js建静态博客
- 在 Node.js 上使用 Dojo
- nginx结合node.js安装使用
- 使用 node.js 进行服务器端 JavaScript 编程
- Node.js和Geddy初学者指南 - 第三部分:使用Mongdb持久化你的数据
- 使用node.js快速开发透明代理
- Node.js和Geddy初学者指南 - 第三部分:使用Mongdb持久化你的数据
- Node.js和Geddy初学者指南 - 第三部分:使用Mongdb持久化你的数据
- 在Windows Azure中使用Node.js,开启云计算之旅!
- 为什么使用 node.js 分享
- nginx and node.js配合使用 helloworld
- 在Windows Azure中使用Node.js,开启云计算之旅!
- Node.js集成开发环境Cloud9搭建及CoffeeScript插件使用