nginx + python + uwsgi + django + virtualenv + virtualenvwrapper
3/30/2013 11:01:00 AM
Posted by johnhomer
For Systems Engineers coming in from PHP world, installing and configuring the software stack needed to run python + django applications can be a daunting task specially when dealing with multiple python versions. Or, when the operating system python version is not compatible with what is required by the python web application. Here's how I did it with Ubuntu:
- Set locale and timezone
locale-gen en_US.UTF-8 echo "Asia/Singapore" > /etc/timezone dpkg-reconfigure --frontend noninteractive tzdata
- Update packages
apt-get update && apt-get upgrade -y
- Limits
ulimit -n 20000 echo 'fs.file-max = 200000' >> /etc/sysctl.d/20_nginx.conf
Subscribe to:
Posts (Atom)