当前位置:网站首页>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");
})边栏推荐
- PHP constructor with parameters - PHP constructor with a parameter
- Practice of traffic recording and playback in vivo
- @Accessors注解作用指定前缀遵守驼峰命名
- Yiwen takes you to know ZigBee
- Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
- What does it mean when lambda is not entered?
- Do you really understand relays?
- Creation and destruction of function stack frame
- Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte
- I2C subsystem (I): I2C spec
猜你喜欢

用docker 连接mysql的过程

迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常

Docker install redis

Add automatic model generation function to hade

Docker install MySQL

Three. JS local environment setup

C语言初阶-指针详解-庖丁解牛篇

你真的懂继电器吗?

The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled

Sqlserver row to column pivot
随机推荐
I2C 子系统(三):I2C Driver
Chart. JS multitooltip tag - chart js multiTooltip labels
docker安装mysql
I2C 子系統(四):I2C debug
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
Segmentation fault occurs during VFORK execution
Change cell color in Excel using C - cell color changing in Excel using C
MySql實戰45講【SQL查詢和更新執行流程】
MySql实战45讲【行锁】
Process the dataset and use labelencoder to convert all IDs to start from 0
Can netstat still play like this?
How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
The base value is too large (the error is marked as "08") [duplicate] - value too great for base (error token is'08') [duplicate]
TCP handshake three times and wave four times. Why does TCP need handshake three times and wave four times? TCP connection establishes a failure processing mechanism
Update and return document in mongodb - update and return document in mongodb
BigVision代码
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
C language beginner level - pointer explanation - paoding jieniu chapter
I2C subsystem (II): I3C spec
Last update time of all sqlserver tables