本节内容:
debian系统环境配置
具体操作如下:
#安装setuptools:
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
python ez_setup.py --user
#163源:
deb http://mirrors.163.com/debian squeeze main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main contrib non-free
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
#字体:
apt-get install ttf-wqy-zenhei
#nginx:
apt-get install libpcre3 libpcre3-dev
apt-get install zlib1g-dev
./configure --prefix=/usr/local/nginx --with-http_ssl_module
make && make install
#memcached:
./configure --prefix=/usr/local/libevent && make && make install
./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent && make && make install
#uwsgi:
apt-get install python-dev
apt-get install python-pip
pip install http://projects.unbit.it/downloads/uwsgi-lts.tar.gz
#提示出现mysql_config错误:
apt-get install libmysqld-dev
#mysql 设置编码:
set character_set_client=utf8;
set character_set_connection=utf8;
set character_set_database=utf8;
set character_set_results=utf8;
set character_set_server=utf8;
数据库及表转换成utf编码
创建时指定编码:
查看字符编码:
数据库设置: