1.安装pip工具

 wget

 python get-pip.py

  完成之后,在 terminal 下进入 python解释器(输入python)

  按顺序输入下面的语句

  import django

  django.VERSION

  这时候会输出你机子上 django 的版本

 (1, 6, 1, 'final', 0)

 apt-get install  python-dev

 

 安装apache

user@host:~$ sudo apt-get install apache2 libapache2-mod-uwsgi

user@host:~$ sudo apt-get install uwsgi uwsgi-plugin-python uwsgi-plugin-cgi

Installing these packages will let you with the following config files and folder structures:

  • /etc/apache2/sites-available

  • /etc/uwsgi/apps-available

  • /etc/default/uwsgi