首页 > 编程语言 > 详细

Python服务器搭建

时间:2016-06-13 11:21:54      阅读:525      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!