盛大云ubuntu主机配置django环境

8 篇文章 0 订阅

1. 安装pip,apt-get install pip

2.安装svn,pip install django

3.安装django,http://blog.csdn.net/kingmari/article/details/7849600

按上面那篇文章安装django,用“django-admin”命令测试时,出现“ImportError: No module named django.core”错误。

解决方法:进入django的根目录,python setup.py install >a.log

参考http://blog.csdn.net/kingmari/article/details/7849636

4.安装easy_install,apt-get install python-setuptools

5.安装south,easy_install south

6.安装git,sudo apt-get install git-core

7.建代码仓库,用来中转代码,sudo git init --bare orderserver

8.本机:把代码推到代码仓库,git push root@58.215.173.251:/srv/coderoom/orderserver master

9.服务器:从代码仓库拉出代码,git clone root@localhost:/srv/coderoom/orderserver/

10.安装gunicorn,sudo easy_install unicorn

11.安装nginx,参考http://nginx.org/en/download.html,

下载key:wget http://nginx.org/keys/nginx_signing.key

安装key:sudo apt-key add nginx_signing.key

For Ubuntu replace codename with Ubuntu distribution codename, and append the following to the end of the/etc/apt/sources.list file:

deb http://nginx.org/packages/ubuntu/ codename nginx
deb-src http://nginx.org/packages/ubuntu/ codename nginx

Supported Ubuntu versions:

VersionCodename
10.04lucid
11.10oneiric
12.04precise

For Debian/Ubuntu then run the following commands:

apt-get update
apt-get install nginx

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值