开启简单的http服务失败

2020-03-19  本文已影响0人  proud2008

想让别人访问本机的简单h5页面,

使用python

cmd进入网页目录 执行

//9988 端口  python3环境  python2 python -m SimpleHTTPServer 8080
 python -m http.server 9988

node webpack

集成好webpack项目
使用vue-cli工具生成项目

PS E:\Cmd> vue
Usage: vue <command> [options]

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Commands:
  init           generate a new project from a template
  list           list available official templates
  build          prototype a new project
  create         (for v3 warning only)
  help [cmd]     display help for [cmd]
PS E:\Cmd> vue list

  Available official templates:

  ★  browserify - A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
  ★  browserify-simple - A simple Browserify + vueify setup for quick prototyping.
  ★  pwa - PWA template for vue-cli based on the webpack template
  ★  simple - The simplest possible Vue setup in a single HTML file
  ★  webpack - A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
  ★  webpack-simple - A simple Webpack + vue-loader setup for quick prototyping.

PS E:\Cmd> vue init webpack myapp

web容器

apache nginx等

上一篇 下一篇

猜你喜欢

热点阅读