长话短说

  npm install anywhere -g

安装好后,cmd 命令 进入你要调试html页面的目录,运行 anywhere

AnyWhere 静态文件服务器

软件简介

AnyWhere是一款随启随用的静态文件服务器,可以随时随地将你的当前目录变成一个静态文件服务器的根目录。

安装:
  npm install anywhere -g
使用:
$ anywhere
// or with port
$ anywhere -p 8000
// or start it but silent(don't open browser)
$ anywhere -s
// or with hostname
$ anywhere -h localhost -p 8888
// or with folder
$ anywhere -d ~/git/anywhere
// or enable html5 history
$ anywhere -f /index.html
使用帮助:
  $ anywhere --help
Usage:
anywhere --help // print help information
anywhere // 8000 as default port, current folder as root
anywhere 8888 // 8888 as port
anywhere -p 8989 // 8989 as port
anywhere -s // don't open browser
anywhere -h localhost // localhost as hostname
anywhere -d /home // /home as root
anywhere -f /index.html // Enable html5 history,the index is /index.html
  http://localhost:8000

执行命令后,默认浏览器将为您自动打开主页。

代码

码云地址

最新文章

  1. Android中ListView实现图文并列并且自定义分割线(完善仿微信APP)
  2. 20145212&20145204信息安全系统实验四报告
  3. 用python虚拟串口
  4. ExtJS笔记 Ext.data.Model
  5. Kafka集群部署
  6. node工具--connect
  7. Hadoop3.0新特性介绍,比Spark快10倍的Hadoop3.0新特性
  8. OpenGL的GLUT初始化函数[转]
  9. PHP新手入门1——表单
  10. [Sharepoint]备份 迁移 还原
  11. Linux free字段解析
  12. fedora 解决yumBackend.py进程CPU占用过高
  13. 问题:关于贴友一个用js传递value默认值的简单实现
  14. Redis被攻击
  15. MiniMetro Items
  16. iOS下WebRTC音视频通话(一)
  17. TCP、UDP通信
  18. Scala字节数组转换为数字
  19. [Hive_12] Hive 的自定义函数
  20. 转载: 一、linux cpu、内存、IO、网络的测试工具

热门文章

  1. [BUUCTF]PWN7——[OGeek2019]babyrop
  2. USACO 2021 Contest 1 Bronze 题解
  3. CF955C Sad powers 题解
  4. 分享自己做的一个指定进程以及线程长时间cpu监控的工具
  5. SpringBoot内嵌ftp服务
  6. 【蓝桥杯】非VIP基础题型训练17题 (Python 题解)
  7. CMAKE为项目输出名添加后缀
  8. 【LeetCode】264. Ugly Number II 解题报告(Java & Python)
  9. 【LeetCode】341. Flatten Nested List Iterator 解题报告(Python&C++)
  10. The more, The Better(hdu1561)