安装anywhere本地静态文件随启随用服务器

1、安装nodejs;

2、安装成功后,执行npm install anywhere -g 安装anywhere

注意:

1-g:表示全局安装;

2)一般anywhere是安装到C:\Users\Hmily\AppData\Roaming\npm\node_modules\anywhere\bin\anywhere

3、cd到静态html文件目录,执行anywhere指令,会启动服务器并打开页面。如图:

静默启动并修改端口:anywhere -p -s 9000

默认不添加 -s 命令会在命令敲击后,同时打开浏览器访问 http://localhost:8000/ 这个路径。

猜你喜欢

转载自blog.csdn.net/wqh0830/article/details/86556375