Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 412 Bytes

File metadata and controls

16 lines (12 loc) · 412 Bytes

Common规范

创建一个Http Server

创建一个web容器,可访问到HTML内容

Http模块客户端演示

nodejs启动调试方式

  • 通过node命令启动 切换到server目录,运行node bin/www,访问localhost:3000.
  • supervisor --> 开发环境推荐
    • npm install supervisor -g
    • supervisor server/bin/www
  • pm2 (基于进程)--> 生产环境推荐 pm2 start server/bin/www