export LANG="ko_KR.UTF-8"
* 영구 변경
vi /etc/default/locale
LANG="ko_KR.UTF-8"
LANGUAGE="ko_KR.UTF-8"


from werkzeug.contrib.cache import RedisCache
cache = RedisCache(host='127.0.0.1',port=6379,db=4)
cache.set('my-item', 'value',timeout=50)
cache.get('my-item')
upstream uwsgicluster { server 127.0.0.1:9001; server 192.168.100.101:9001; server 192.168.100.102:9001; server 192.168.100.103:9001; server 192.168.100.104:9001; } server { listen 80; server_name www.example.com example.com; access_log /srv/www/example.com/logs/access.log; error_log /srv/www/example.com/logs/error.log; location / { include uwsgi_params; uwsgi_pass uwsgicluster; } location /static { root /srv/www/example.com/public_html/static/; index index.html index.htm; } }
python 설치
add-apt-repository ppa:fkrull/deadsnakes
apt-get update
apt-get install python3.4
pip 설치
get https://bootstrap.pypa.io/get-pip.py
python3.4 get-pip.py