码迷,mamicode.com
首页 > 编程语言 > 详细

Python服务器搭建

时间:2016-06-13 11:24:19      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

Python服务器搭建

  1. 安装Python,下载安装:    Python官网 
  2. 添加到系统环境变量:        path C:\Python27;  
  3. 进项目目录,新建文件:     index.html
    hello world
  4. 命令行,进入目录:           cd C:\workplace\python_test 
  5. 命令行启动服务器:           python -m SimpleHTTPServer 8080  
  6. 访问地址:                      http://localhost:8080/index.html 

node服务器搭建

 

express(应用生成器)服务器搭建

  1. 安装Express(已经安装了node):       npm install express-generator -g
  2. 进入目录,创建项目,项目会自动创建: 
  3.                                                      cd C:\workplace
                                                         express  myapp
  1. 进入项目目录,安装依赖:

                                                           cd myapp
                                                           npm install

  2. 启动应用:                                          set DEBUG=myapp& npm start
  3. 浏览器中打开网址                                 http://localhost:3000/ 

  

Python服务器搭建

标签:

原文地址:http://www.cnblogs.com/tabCtrlShift/p/5579758.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!