编程知识 cdmana.com

Node: http server start static server

Document address :https://www.npmjs.com/package/http-server

#  Global installation 
$ npm install http-server -g

Start the service

#  Start the service 
$ http-server

#  Change port and address 
$ http-server <path> -a 0.0.0.0 -p 8080

版权声明
本文为[Peng Shiyu]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225150821736c.html

Scroll to Top