1.在http://libevent.org/下载libevent-2.1.8-stable.tar.gz
2.解压缩 tar -zxvf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
3. ./configure –-prefix=/home/dj/lib/libevent
make
make install
4.为了防止运行时动态库链接问题
在/etc/ld.so.conf 最后面加上 /home/dj/lib/libevent/lib
/sbin/ldconfig立即生效