创建Hello world 网页服务
来源:互联网 发布:sql setup.exe打不开 编辑:程序博客网 时间:2024/06/02 07:05
const http = require(‘http’)
const hostname = ‘127.0.0.1’
const port = 3000
const server = http.createServer((req, res) => {
res.statusCode = 200
res.setHeader(‘Content-Type’,’text/plain’)
res.end(“Hello World\n”)
})
server.listen(port, hostname, () => {
console.log(server running at http://${hostname}:${port}/
)
})
阅读全文
0 0
- 创建Hello world 网页服务
- corba服务--Hello World
- 使用Spring DM创建Hello World,以及OSGi服务
- 使用Spring DM创建Hello World,以及OSGi服务
- Sciter:创建Hello World
- 创建Hello World图形界面
- 创建Hello World图形界面
- 创建“hello world”图形界面
- jersey restful服务Hello World
- Xib文件创建hello world
- Xib文件创建hello world
- ABAP创建HELLO WORLD程序
- ssh总结,创建hello world
- 创建"Hello World"图形用户界面
- 创建“Hello World”图形用户界面
- 创建"hello.world"图形用户界面
- 创建"Hello World"图形用户界面
- 创建“Hello World“图形用户界面
- JAVA程序设计:基于TCP协议的聊天程序
- for语句
- HDU
- 727. Minimum Window Subsequence
- 对conda和pip的一点认识
- 创建Hello world 网页服务
- dpdk加速网络协议栈ANS用户手册
- 如何写一个RPC框架(四):网络通信之客户端篇
- 沐枫NOI 6. Help Chef Gerasim 模拟
- CodeForces
- Mark一下
- python matplotlib从文件中读取数据绘制散点图
- windows通过putty连接虚拟机中的ubuntu系统
- 纯CSS画基本图形(圆形、三角形、多边形、爱心、八卦)