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立即生效