Python服务器搭建
- 安装Python,下载安装: Python官网
- 添加到系统环境变量: path C:\Python27;
- 进项目目录,新建文件: index.html
- 命令行,进入目录: cd C:\workplace\python_test
- 命令行启动服务器: python -m SimpleHTTPServer 8080
- 访问地址: http://localhost:8080/index.html
node服务器搭建
express(应用生成器)服务器搭建
- 安装Express(已经安装了node): npm install express-generator -g
- 进入目录,创建项目,项目会自动创建:
cd C:\workplace
express myapp
- 进入项目目录,安装依赖:
cd myapp
npm install
- 启动应用: set DEBUG=myapp& npm start
- 浏览器中打开网址 http://localhost:3000/
Python服务器搭建
原文:http://www.cnblogs.com/tabCtrlShift/p/5579758.html