Django apache2 安装配置
1.安裝pip工具
?wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
?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
轉載于:https://blog.51cto.com/ttcool/1355008
總結
以上是生活随笔為你收集整理的Django apache2 安装配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 转观念 变架构 补短板——析科华恒盛向数
- 下一篇: 欢迎您参加_ADT技术培训营