美文网首页
AnyWhere 静态文件服务器

AnyWhere 静态文件服务器

作者: 祥仔90后 | 来源:发表于2023-03-27 11:23 被阅读0次

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
执行命令后,默认浏览器将为您自动打开主页。

相关文章

  • 起一个本地server

    随时随地将你的当前目录变成一个静态文件服务器的根目录。 anywhere python2 python3 http...

  • {ShareWithU}每天都值得期待~午安~

    达到效果:将电脑文件传到手机上,不用数据线、不登微信、QQ。 Anywhere 随启随用的静态文件服务器 快速在当...

  • java Socket 实现多线程静态文件服务器

    关于静态文件服务器,我觉得博文共赏:Node.js静态文件服务器实战写的不错,简单易懂,思路清晰,不过使用Node...

  • flask

    如何使用flask做vue的静态文件服务器? 原理: 让flask的静态文件与模板文件的根目录指向vue的静态文件...

  • Nginx笔记

    基本使用 添加一个静态文件服务器, 并以目录方式呈现

  • Nginx配置虚拟主机

    标签(空格分隔): nginx 1 新增域名为 $host 静态文件服务器 1.1 打开 Nginx 配置文件 /...

  • Nginx静态服务配置---详解root和alias指令

    静态文件 Nginx以其高性能著称,常用与做前端反向代理服务器。同时nginx也是一个高性能的静态文件服务器。通常...

  • 专题十二、如何搭建本地服务器

    方法一、快速简单的静态服务器:安装anywhere首先必须是在node环境下的1、运行npm install an...

  • 2019-05-07 auywhere使用

    安装anywhere 进入文件后输入anywhere

  • 承诺

    whtat are words anywhere you are,i am near anywhere you g...

网友评论

      本文标题:AnyWhere 静态文件服务器

      本文链接:https://www.haomeiwen.com/subject/wpqzrdtx.html