2010年(37)
分类: Python/Ruby
2010-05-18 17:27:43
[root@filerserver python]#cd /etc/yum.repos.d二:安 装部分的开发包和更新
[root@filerserver python]#mv CentOS-Base.repo CentOS-Base.repo.save
[root@filerserver python]#wget
[root@filerserver python]#mv CentOS-Base.repo.5 CentOS-Base.repo
[root@filerserver python]#yum check-update三:安装Python
[root@filerserver python]#yum update
[root@filerserver python]#yum install ntp iptraf sysstat screen subversion wget bzip2 nfs-utils vim-common
[root@filerserver python]#yum install make gcc gcc-c++ libjpeg-devel libpng-devel zlib-devel tcl-devel freetype-devel libevent-devel openssl-devel db4-devel curl-devel pcre-devel ncurses-devel readline-devel sqlite-devel
[root@filerserver python]#cd /usr/local/src四:安装MySQL客户端
[root@filerserver python]#wget
[root@filerserver python]#tar xjvf Python-2.5.4.tar.bz2
[root@filerserver python]#cd Python-2.5.4/
[root@filerserver python]#./configure --enable-unicode=ucs4
[root@filerserver python]#make
[root@filerserver python]#make install
[root@filerserver python]#cd /usr/local/src五: 安装memcached
[root@filerserver python]#wget
[root@filerserver python]#tar zxvf mysql-5.0.45.tar.gz
[root@filerserver python]#cd mysql-5.0.45
[root@filerserver python]#CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \
-fno-exceptions -fno-rtti" ./configure \
--prefix=/usr/local/mysql --enable-assembler \
--with-charset=utf8 \
--with-extra-charsets=gbk,gb2312,latin1 \
--without-debug \
--with-client-ldflags=-all-static \
--enable-thread-safe-client \
--without-server
[root@filerserver python]#make
[root@filerserver python]#make install
[root@filerserver python]#echo "PATH=/usr/local/mysql/bin:\$PATH" >> /etc/profile
[root@filerserver python]#echo "export PATH" >> /etc/profile
[root@filerserver python]#echo "/usr/local/mysql/lib/mysql" > /etc/ld.so.conf.d/mysql.conf
[root@filerserver python]#ldconfig
[root@filerserver python]#cd /usr/local/src六: 安装python setuptools
[root@filerserver python]#wget
[root@filerserver python]#tar xzvf memcached-1.2.6.tar.gz
[root@filerserver python]#cd memcached-1.2.6/
[root@filerserver python]#./configure --prefix=/usr/local/memcached --enable-threads
[root@filerserver python]#make
[root@filerserver python]#make install
[root@filerserver python]#cd /usr/local/src七:安装django
[root@filerserver python]#wget
[root@filerserver python]#tar xzvf setuptools-0.6c9.tar.gz
[root@filerserver python]#cd setuptools-0.6c9
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src八: 安装sqlalchemy
[root@filerserver python]#svn co django-trunk #直接重django的SVN拿最新稳定安装包
[root@filerserver python]#cd django-trunk
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src九:安装MySQLdb
[root@filerserver python]#svn co
[root@filerserver python]#cd sqlalchemy-0.4
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src十:安装Twisted
[root@filerserver python]#wget
[root@filerserver python]#tar xzvf MySQL-python-1.2.2.tar.gz
[root@filerserver python]#cd MySQL-python-1.2.2
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src十 一:安装python-memcached
[root@filerserver python]#wget
[root@filerserver python]#tar xjvf Twisted-8.2.0.tar.bz2
[root@filerserver python]#cd Twisted-8.2.0/
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src十二:安装PIL
[root@filerserver python]#wget
[root@filerserver python]#tar xzvf python-memcached-1.44.tar.gz
[root@filerserver python]#cd python-memcached-1.44
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src十 三:安装flup
[root@filerserver python]#wget
[root@filerserver python]#tar xzvf Imaging-1.1.6.tar.gz
[root@filerserver python]#cd Imaging-1.1.6
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src十 四:安装simplejson
[root@filerserver python]#wget
[root@filerserver python]#tar xzvf flup-1.0.1.tar.gz
[root@filerserver python]#cd flup-1.0.1
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src十五:安装nginx
[root@filerserver python]#wget
[root@filerserver python]#tar xzvf simplejson-2.0.9.tar.gz
[root@filerserver python]#cd simplejson-2.0.9
[root@filerserver python]#python setup.py install
[root@filerserver python]#cd /usr/local/src
[root@filerserver python]#wget
[root@filerserver python]#tar xzvf nginx-0.7.51.tar.gz
[root@filerserver python]#cd nginx-0.7.51
[root@filerserver python]#./configure --prefix=/usr/local/nginx \
--with-md5=/usr/lib \
--with-sha1=/usr/lib \
--with-http_ssl_module \
--with-http_stub_status_module \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
--with-http_realip_module
[root@filerserver python]#make
[root@filerserver python]#make install