Centos Tornado 环境配置

Posted jhc888007的笔记

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos Tornado 环境配置相关的知识,希望对你有一定的参考价值。

yum install libxslt-devel libffi libffi-devel python-devel gcc openssl openssl-devel sqlite-devel mysql-devel gcc+ gcc-c++ autoconf

wget https://files.pythonhosted.org/packages/66/6d/dad0d39ce1cfa98ef3634463926e7324e342c956aecb066968e2e3696300/setuptools-30.0.0.tar.gz
tar -xvf setuptools-30.0.0.tar.gz
cd setuptools-30.0.0
python setup.py install
cd ..

wget https://files.pythonhosted.org/packages/5e/53/eaef47e5e2f75677c9de0737acc84b659b78a71c4086f424f55346a341b5/pip-9.0.0.tar.gz
tar -xvf pip-9.0.0.tar.gz
cd pip-9.0.0
python setup.py install
cd ..

wget https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
unzip MySQL-python-1.2.5.zip
cd MySQL-python-1.2.5
python setup.py install
cd ..

wget http://download.redis.io/releases/redis-2.8.17.tar.gz
tar -xvf redis-2.8.17.tar.gz
cd redis-2.8.17
make -j20
make install
cd ..

wget https://files.pythonhosted.org/packages/09/8d/6d34b75326bf96d4139a2ddd8e74b80840f800a0a79f9294399e212cb9a7/redis-2.10.6.tar.gz
tar -xvf redis-2.10.6.tar.gz
cd redis-2.10.6
python setup.py install
cd ..

wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
mv master.zip ssdb-master.zip
unzip ssdb-master.zip
cd ssdb-master
make -j20
make install
cd ..

wget https://files.pythonhosted.org/packages/db/a5/c8057b0725b8aa43d6aaefe323820aac867986d2e4ce751afaa7fab0b776/tornado-4.5.tar.gz
tar -xvf tornado-4.5.tar.gz
cd tornado-4.5
python setup.py install
cd ..

 

以上是关于Centos Tornado 环境配置的主要内容,如果未能解决你的问题,请参考以下文章

Python Tornado初学笔记之表单与模板

tornado+nginx+python 微信公众号接入配置

启动tornado项目,hello world

Tornado从入门到进阶 打造支持高并发的技术论坛

Tornado从入门到进阶 打造支持高并发的技术论坛

环境初始化 Build and Install the Apache Thrift IDL Compiler Install the Platform Development Tools(代码片段