centos 5.5 deploy full procedure

install fastestmirror
yum install yum-fastestmirror

yum install tix

rpm -ivh python26-2.6.5-3.el5.i386.rpm 
python26-test-2.6.5-3.el5.i386.rpm python26-devel-2.6.5-3.el5.i386.rpm 
python26-tools-2.6.5-3.el5.i386.rpm python26-libs-2.6.5-3.el5.i386.rpm 
tkinter26-2.6.5-3.el5.i386.rpm libffi-3.0.5-1.el5.i386.rpm 

yum install gcc

tar -zxvf freetds-stable.tgz

./configure --prefix=/usr/local/freetds --with-tdsver=8.0 
--enable-msdblib --enable-dbmfix

make

make install

change default python to new python use ln -s
cd /usr/bin
ln -sr python26 python

tar -zxvf setuptools-0.6c11.tar.gz 
sudo python setup.py install

easy_install redis
easy_install dreque
easy_install eventlet

change to default python
yum install cython

tip:in centos 5.5 currently didn't have the cython package,so you need download source package and compile it
wget http://www.cython.org/release/Cython-0.12.1.tar.gz
tar -zxvf Cython-0.12.1.tar.gz
cd Cython-0.12.1
sudo python setup.py install


tar -zxvf pymssql-1.9.908.tar.gz 
change to new python,the step is as follows:
[root@localhost bin]# mv python python_
[root@localhost bin]# ln -s python2.
python2.4         python2.6         python2.6-config  
[root@localhost bin]# ln -s python2.
python2.4         python2.6         python2.6-config  
[root@localhost bin]# ln -s python2.4 python
[root@localhost bin]# ls -al|grep python


cd pymssql-1.9.908
sudo python setup.py install

yum  install freetds-devel
update redis-py driver









你可能感兴趣的:(procedure)