1. 需要安装http-server 通过npm install -g http-server 进行全局安装 2. 通过命令行进入到dist文件夹 运行http-server,这样就可简单的本地启动一个服务了。