1. 编译libevent
a. 下载 libevent-2.0.17-stable
b. ./configure --prefix=/usr/local/libevent
gcc hello-world.c -I/usr/local/libevent/include -L/usr/local/libevent -levent
a. 下载 libevent-2.0.17-stable
b. ./configure --prefix=/usr/local/libevent
c. make && make install
gcc hello-world.c -I/usr/local/libevent/include -L/usr/local/libevent -levent