码迷,mamicode.com
首页 > Web开发 > 详细

http-server的安装及使用

时间:2019-06-26 09:28:37      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:alt   serve   image   option   ima   game   访问   使用   info   

一 : 安装

npm install http-server -g

二 : 使用

http-server [path] [options]

① , path 网站地址
② , 一般是端口
如:
技术图片

则 :
http-server D:\Pokemon\xgame_h5_vn -p 8888

可以访问了:
技术图片

http-server的安装及使用

标签:alt   serve   image   option   ima   game   访问   使用   info   

原文地址:https://blog.51cto.com/aonaufly/2413354

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!