[原创]Ubuntu Server下配置Lighttpd+Django运行环境

阅读更多
今天想抛弃Apache改用lighttpd来做服务器,原因有很多,不要问我了,呵呵! python2.4 在ubuntu edgy server中自带了,就不用说怎么安装了. 参考:http://www.djangoproject.com/documentation/fastcgi/ http://trac.lighttpd.net/trac/wiki 1.安装django sudo wget -c http://media.djangoproject.com/releases/0.96/Django-0.96.tar.gz tar xzvf Django-0.96.tar.gz cd Django-0.96 sudo python setup.py install 测试一下django是否安装成功 cd ~ django-admin.py startproject djangosite cd djangosite sudo chmod +x manage.py python manage.py runserver 显示 Validating models... 0 errors found.   Starting server on port 8000 with settings module 'newtest.settings'. Go to http://127.0.0.1:8000/ for Django. Quit the server with CONTROL-C (Unix) or CTRL-BREAK (Windows). 表示安装成功,呵呵! 2.安装flup sudo wget -c http://www.saddi.com/software/flup/dist/flup-0.5.tar.gz tar xzvf flup-0.5.tar.gz cd flup-0.5 sudo python setup.py install 3.安装lighttpd 我直接在源里安装的 apt-get install [...]

你可能感兴趣的:(Django,lighttpd,Ubuntu,Python,C#)