http-server: a command-line http server

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

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

时间: 2024-08-03 04:08:35

http-server: a command-line http server的相关文章

Microsoft? Command Line Utilities 11 for SQL Server?

Microsoft? Command Line Utilities 11 for SQL Server? http://www.microsoft.com/en-hk/download/details.aspx?id=36433 Microsoft? ODBC Driver 11 for SQL Server? - Windows http://www.microsoft.com/en-hk/download/details.aspx?id=36434Microsoft? Command Lin

VMware Perl SDK error “Server Version Unavailable .. line 545”

当我在centos6.6中运行perl脚本时候,出现"Server Version Unavailable..... line 545"问题,如图: 这是因为无法验证服务器的SSL证书才造成的. 设置如下的环境变量,就可以解决问题: export PERL_LWP_SSL_VERIFY_HOSTNAME=0 这个环境变量只是对当前session起作用,你可以加入到/etc/bashrc中的最后,使它能作用global. vim /etc/bashrc ...... export PER

SQL Server ->> Msg 7411, Level 16, State 1, Line 1 -- Server 'XXXX' is not configured for RPC.

关于问题,有两个相关的服务器选项. exec sp_serveroption @server='CIA-SH-SVR-SIS', @optname='rpc', @optvalue='true' exec sp_serveroption @server='CIA-SH-SVR-SIS', @optname='rpc out', @optvalue='true' 通常我们从linked server上取数据有两种办法.第一种是用完全路径访问,即SELECT * FROM [Server].[Dat

How To use RHEVM Command Line?

本文简单的描述下如何连接rhev shell以及简单的使用.关于更详细的用法请参考官方文档. 1.如何连接到rhevm? 要想连接到rhevm,必须拥有一个有效的证书.此证书一般安装完rhevm后会自动产生.下面是如何获取到证书. [[email protected] ~]# wget -O rhevm.cer http://rhevm.xzxj.edu.cn/ca.crt --2014-05-02 09:29:34-- http://rhevm.xzxj.edu.cn/ca.crt Resol

【转载】Data Science at the Command Line

Data Science at the Command Line Data Science at the Command Line is a new book written by Jeroen Janssens. This website contains information about the upcoming workshop in London, the webcast from August 20th, instructions on how to install the Data

MySQL5.6 Using a password on the command line interface can be insecure

最近把MySQL从5.5升到5.6以后,mysqldump居然不好用了,提示:  代码如下 复制代码 [[email protected] ~]# /usr/local/mysql/bin/mysqldump  -uroot -proot db > bak.sqlWarning: Using a password on the command line interface can be insecure. 翻译过来是:在命令行界面上使用密码可以是不安全的. 这让人有点郁闷,5.5用的一直都很爽,

安装SQL Servre2000时提示“command line option syntax error! type command /? for help”

问题: 当程序正在安装ms数据访问组件时,弹出错误提示框:command line option syntax error,type command/? for help,点击确定继续:到了程序正在安装HTML帮助时,弹出标题为html help 1.32 update错误提示框:command line option syntax error,type command/? for help,点击确定继续:程序开始复制文件,复制完后弹出错误提示框:无法找到动态连接库sqlunirl.dll(sq

Microsoft SQL Server Version List(SQL Server 版本)

原帖地址 What version of SQL Server do I have? This unofficial build chart lists all of the known Service Packs (SP), Cumulative Updates (CU), patches, hotfixes and other builds of MS SQL Server 2014, 2012, 2008 R2, 2008, 2005, 2000, 7.0, 6.5 and 6.0 tha

第三篇——第二部分——第五文 配置SQL Server镜像——域环境SQL Server镜像日常维护

本文接上面两篇搭建镜像的文章: 第三篇--第二部分--第三文 配置SQL Server镜像--域环境:http://blog.csdn.net/dba_huangzj/article/details/28904503第三篇--第二部分--第四文 配置SQL Server镜像--非域环境:http://blog.csdn.net/dba_huangzj/article/details/27652857 在搭建的过程中,可能你会遇到比较多的问题,下面介绍一些常见的问题及解决方案,另外把主要精力放到对

安装Symantec Backup Exec报“microsoft visual C++ 2005 SP1 command line syntax error.”

OS:Windows Server 2008 R2 standard 报错如下所示: 解决方法: 由于安装源的文件夹目录为中文,更改其目录为英文后安装测试正常. 参考: http://zhidao.baidu.com/question/176383841.html?qbl=relate_question_0 安装Symantec Backup Exec报"microsoft visual C++ 2005 SP1 command line syntax error.",布布扣,bubu