1、下载libevent
http://ftp.lfs-matrix.net/pub/blfs/conglomeration/libevent/libevent-2.0.22-stable.tar.gz
2、下载memcached
http://memcached.org/files/memcached-1.4.34.tar.gz
yum install -y apr* autoconf automake bison&n
1、安装iptables防火墙如果没有安装iptables需要先安装,CentOS执行:yum install iptablesDebian/Ubuntu执行:apt-get install iptables2、清除已有iptables规则iptables -Fiptables -Xiptables -Z3、开放指定的端口#允许本地回环接口(即运行本机访问本机)iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT# 允许已建立的或相关连的通行
yum install zlib zlib-devel perl-ExtUtils-Embed -y到 https://www.kernel.org/pub/software/scm/git/ 下载最新的git源码包解压源码包并编译安装tar xzvf git-2.9.3.tar.gzcd git-2.9.3./configuremakemake install建立软连接ln -s /u