1.在http://libevent.org/下载libevent-2.1.8-stable.tar.gz
2.tar -zxvf libevent-2.1.8-stable.tar.gz
3.cd libevent-2.1.8-stable
4./configure --prefix=/usr --libdir=/usr/lib64
5.make
6.make install