首页 > Web开发 > 详细

http-server: a command-line http server

时间:2020-01-29 23:02:43      阅读:94      评论:0      收藏:0      [点我收藏+]

http-server

https://github.com/http-party/http-server#readme

http-server is a simple, zero-configuration command-line http server.

It is powerful enough for production usage, but it‘s simple and hackable enough to be used for testing, local development, and learning.

一款好用的nodejs平台的http服务器,功能简单,但是无需配置。

与成熟的express相比, 其没有常用的路由和中间件功能。

但是其确实好用 ,被广泛应用于 测试 、 本地开发 、 学习。

 

安装

Installing globally:

Installation via npm:

 npm install http-server -g

This will install http-server globally so that it may be run from the command line.

 

Usage:

 http-server [path] [options]

[path] defaults to ./public if the folder exists, and ./ otherwise.

Now you can visit http://localhost:8080 to view your server

 

http-server: a command-line http server

原文:https://www.cnblogs.com/lightsong/p/12241636.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!