1、安装依赖
sudo yum install gcc flex bison zlib zlib-devel libpcap libpcap-devel pcre pcre-devel libdnet libdnet-devel tcpdump
2、安装daq
yum install https://www.snort.org/downloads/snort/daq-2.0.6-1.centos7.x86_64.rpm
![](https://i-blog.csdnimg.cn/blog_migrate/b287b93dc5abdcae72da9d995d5dd82d.png)
3、安装snort
yum install https://www.snort.org/downloads/snort/snort-2.9.9.0-1.centos7.x86_64.rpm
这里一直报找不到镜像的错误,我去官网看看,感觉是路径不对,在官网直接下载二进制的安装包,上传到服务器。
snort官网:
命令安装:
yum install snort-2.9.11.1-1.centos7.x86_64.rpm
![](https://i-blog.csdnimg.cn/blog_migrate/f056f5c6f6563188fcbcbff52d30dc41.png)
缺少libnghttp2.so.14()(64bit),请尝试sudo yum install epel-release -y;sudo yum install nghttp2再次安装即可
参考: