sudo apt-get -y install libpcap-dev python-dev
git clone https://github.com/eternalprojects/redis-sniffer.git
cd redis-sniffer
sudo python setup.py install
报错:
pcap.h not found
解决:
yum install libpcap-devel
sudo python setup.py install --user
原文地址:http://blog.51cto.com/13172370/2129035