当前位置:网站首页>node 开启服务器
node 开启服务器
2022-07-03 03:11:00 【苏小画】
// 导入模块
const http=require("http")
//创建web服务器实例
const server =http.createServer()
// 绑定事件,监听请求
server.on("request",function(res,res){
console.log("开始启动")
})
// 启动服务器
server.listen(8084,function(){
console.log("http://127.0.0.1:8084");
})
边栏推荐
- Three.js本地环境搭建
- MySQL Real combat 45 [SQL query and Update Execution Process]
- labelme标记的文件转换为yolov5格式
- I2C 子系统(三):I2C Driver
- How to limit the size of the dictionary- How to limit the size of a dictionary?
- Add automatic model generation function to hade
- PHP constructor with parameters - PHP constructor with a parameter
- File rename
- The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
- 将时间戳转为指定格式的时间
猜你喜欢
你真的懂继电器吗?
Check log4j problems using stain analysis
VS 2019配置tensorRT
[error record] the parameter 'can't have a value of' null 'because of its type, but the im
MySql实战45讲【全局锁和表锁】
I2C subsystem (III): I2C driver
Vs 2019 configure tensorrt to generate engine
VS 2019 配置tensorRT生成engine
el-tree搜索方法使用
力扣------网格中的最小路径代价
随机推荐
销毁Session和清空指定的属性
The difference between componentscan and componentscans
Concrete CMS vulnerability
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
Kubernetes family container housekeeper pod online Q & A?
The core idea of performance optimization, dry goods sharing
Opengauss database development and debugging tool guide
I2C 子系统(二):I3C spec
Anhui University | small target tracking: large-scale data sets and baselines
模型转换onnx2engine
敏捷认证(Professional Scrum Master)模拟练习题
The process of connecting MySQL with docker
二维数组中的元素求其存储地址
I2C subsystem (II): I3C spec
Cron表达式介绍
open file in 'w' mode: IOError: [Errno 2] No such file or directory
Chart. JS multitooltip tag - chart js multiTooltip labels
[C language] MD5 encryption for account password
About HTTP cache control
函数栈帧的创建与销毁