基于Node.js轻量级HTTP服务器:http-server,简易完美解决数据传输的问题
1、部署nodejs
下载地址:https://nodejs.org/en/download/
安装和其他windows软件一样,在安装的时候注意观察将nodejs加入path环境变量中
2、DOS窗口下安装http-server
3、启动服务
注释:我是在桌面上新建了一个文件夹,并把要传输的内容放在这个文件夹中。所以我cd到这个文件夹下启动服务
4、在同一局域网下,手机浏览器直接输入IP和端口就可以轻松访问到笔记本上的内容了。
如果本来是想通过钉钉传输app安装包,发现下载完后不能直接安装。搭建一个简易的http服务就可以完美解决啦,下载到手机上进行安装。
综上,简单操作实现类似Apache http服务