web hello world
2016-03-25 19:04
323 查看
var http = require("http") undefined http.createServer(function(request,response){ response.writeHead(200,{'Content-Type':'text/plain'}); response.end("Hello World\n"); }).listen(8888); console.log("server running at http:/127.0.0:8888");
root@ubuntu:/home/xiuye/workspace# vi server.js root@ubuntu:/home/xiuye/workspace# nodejs server.js server running at http:/127.0.0:8888
相关文章推荐
- Android实现与SQL连接
- android上下文菜单
- poj-1083-Moving Tables
- category使用 objc_setAssociatedObject/objc_getAssociatedObject 实现添加属性
- elevator楼层效果
- 图像的压缩与恢复
- 英文写作常见错误
- VK Cup 2016 - Qualification Round 2 C. Road Improvement dfs
- Websphere 手动模拟删除应用操作
- 第四周学习进度
- 事件分发与消费(初学)
- 七、初学SpringMVC+Mybatis之SpringMVC基于注解的配置
- wifi 模块 配置
- oc之递归遍历文件的行数
- android拨打电话
- UVA 11889
- URL、URN 、URI的区别和联系
- C++学习之:括号匹配与栈的使用
- xml文件解析(解析以后在RootTableViewController输出)
- Linux***检查