一、updaterpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpmyum -y install expat expat-devel glibc-devel glibc tcl tcl-devel patch make gcc gcc-c++ libtool libtool-libs autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-serverswget http://autosetup1.googlecode.com/files/pcre-8.01.tar.gztar -zxvf pcre-8.01.tar.gzcd pcre-8.01./configuremake && make installcd ..wget http://autosetup1.googlecode.com/files/libiconv-1.13.tar.gztar zxvf libiconv-1.13.tar.gzcd libiconv-1.13/./configure --prefix=/usr/localmakemake installcd ..echo "/usr/local/lib" >> /etc/ld.so.confldconfig二、traffic server1、installgroupadd trafficserveruseradd -g trafficserver trafficserverwget http://apache.freelamp.com//trafficserver/trafficserver-2.1.3-unstable.tar.bz2tar -jxvf trafficserver-2.1.3-unstable.tar.bz2cd trafficserver-2.1.3-unstableautoreconf -i./configure --prefix=/usr/local/trafficserver --enable-webui --with-user=trafficserver --with-group=trafficservermakemake install2、configvi /usr/local/trafficserver/etc/trafficserver/records.configCONFIG proxy.config.proxy_name STRING linuxtone.org // proxy_nameCONFIG proxy.config.admin.web_interface_port INT 8081 //web_protCONFIG proxy.config.admin.admin_user STRING admin //web userCONFIG proxy.config.admin.admin_password STRING 21232F297A57A5A743894A0 // admin@passwdCONFIG proxy.config.http.server_port INT 80 // 8080>>80vim /usr/local/trafficserver/etc/trafficserver/remap.configmap http://192.168.1.253 http://bbs.linuxtone.org ip webvim /usr/local/trafficserver/etc/trafficserver/storage.config3、start/usr/local/trafficserver/bin/trafficserver start //start/usr/local/trafficserver/bin/trafficserver stop //stop4、testC:\Users\Administrator>curl -I http://192.168.1.253HTTP/1.1 200 OKServer: ATS/2.1.3-unstableDate: Mon, 08 Nov 2010 06:11:27 GMTContent-Type: text/html; charset=utf-8Vary: Accept-EncodingSet-Cookie: ppRN_2132_lastvisit=1289193087; expires=Wed, 08-Dec-2010 06:11:27 GMT; path=/Set-Cookie: ppRN_2132_sid=5Oat3O; expires=Tue, 09-Nov-2010 06:11:27 GMT; path=/Set-Cookie: ppRN_2132_lastact=1289196687%09index.php%09; expires=Tue, 09-Nov-2010 06:11:27 GMT; path=/Set-Cookie: ppRN_2132_onlineusernum=2672; expires=Mon, 08-Nov-2010 06:16:27 GMT;path=/Set-Cookie: ppRN_2132_sid=5Oat3O; expires=Tue, 09-Nov-2010 06:11:27 GMT; path=/Age: 0Connection: keep-aliveVia: HTTP/1.1 linuxtone.org (ApacheTrafficServer/2.1.3-unstable [cMsSf ])