1、下载pf_ring
https://gitee.com/mirrors/PF-RING
mirrors-PF-RING-7.6.0.zip
2、编译内核
[root@localhost ~]# cd /root/build_pfring
[root@localhost build_pfring]# ls
mirrors-PF-RING-7.6.0.zip
[root@localhost build_pfring]# unzip mirrors-PF-RING-7.6.0.zip
[root@localhost build_pfring]# cd PF_RING
[root@localhost PF_RING]# make
[root@localhost PF_RING]# cd kernel/
[root@localhost kernel]# insmod pf_ring.ko
[root@localhost kernel]# lsmod | grep pf_ring
3、编译用户空间PF_RING库
[root@localhost PF_RING]# cd userland/
[root@localhost userland]# make && make install
备注:可根据项目需求,自行选择安装网卡增强级驱动