Hyperscan的源码编译安装

飞腾平台上Hyperscan安装测试指南 ​  Hyperscan是一款来自于Intel的高性能的正则表达式匹配库。它是基于x86平台以PCRE为原型而开发的,并以BSD许可开源在https://01.org/hyperscan。Hyperscan适用于部署在诸如DPI/IPS/IDS/FW等场景中,目前已经在全球多个客户网络安全方案中得到实际的应用。 阅读详情

操作系统版本: Ubuntu 20.04.5
Hyperscan版本: 5.3.0

Hyperscan是一个正则表达式引擎,旨在提供高性能、同时匹配多个表达式的能力以及扫描操作的灵活性。要想实现高性能的字符串或者正则匹配,就可以使用它。

下面我们一起来先看一下如何源码安装Hyperscan:
1、安装依赖包:
sudo apt install -y libboost-all-dev
sudo apt install -y ragel
sudo apt install -y cmake
sudo apt install -y build-essential

2、从github上下载Hyperscan源码:
git clone --branch v5.3.0 https://github.com/intel/hyperscan.git hyperscan_5.3.0

3、编译和安装Hyperscan:
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=on
make -j8
make install

4、更新动态库路径:
echo “/usr/local/lib” | sudo tee --append /etc/ld.so.conf.d/usrlocal.conf
sudo ldconfig

Hyperscan 5.4.0 安装教程 (CentOS7环境) 参考:Getting Started — Hyperscan 5.4.0 documentation 目录 1.下载 2.安装环境配置 2.1 硬件需求: 2.2 软件需求: 3.安装 3.1创建构建目录 3.2设置编译选项 3.3 构建hyperscan 4.安装完成测试 1.下载 https://github.com/intel/hyperscan/releases 2.安装环境配置 2.1 硬件需求: Supplemental Streaming SIMD Extens. 阅读详情

相关推荐

Windows下python组件hyperscan的编译与安装

boost_1_78_0/ -DBUILD_SHARED_LIBS=on -D PCRE_SOURCE=%cd%/…/pcre-8.45/ …hyperscan 是英特尔推出的一款高性能正则表达式引擎,一次接口调用可以实现多条规则与多个对象之间的匹配,可以支持多种匹配模式,块模式和流模式,它是以PCRE为原型开发,并以BSD许可证开源。12、 在hs.def中增加导出函数hs_compile_lit_multi,重新编译hyperscan工程后再执行python组件安装脚本,安装成功。...

KeJiGuaiKa的博客 431

ubuntu20.04下源码安装hyperscan库安装记录

ubuntu安装hyperscan

sa726663676的博客 1854

基于DPDK收包的suricata的安装和运行

先用lshw -C network -businfo命令找到网卡的pcie地址,然后在/usr/local/etc/suricata/suricata.yaml文件中配置suricata DPDK收包,主要修改interface和copy-iface配置。suricata是一个基于规则的入侵检测和防御引擎,功能强大,但性能可能 差强人意,不过目前最新的7版本已经支持DPDK收包了,DPDK是Intel提供的高性能网络收发包开源库,可想而知,suricata支持DPDK收包会带来性能的极大提升。

每天分享一个编程小知识 2608

centos 8 编译安装hyperscan

CentOS 8 编译安装hyperscan

好记性不如烂笔头 775

Hyperscan 在鲲鹏服务器上进行版本编译的指导

Hyperscan 在鲲鹏服务器上进行版本编译的指导

SIPVicious实战指南:从零开始掌握VoIP渗透测试(Kali Linux环境)

本文为SIPVicious实战指南,详细介绍了在Kali Linux环境下进行VoIP渗透测试的完整流程。从环境准备与工具安装开始,逐步讲解如何使用svmap扫描SIP服务器、svwar枚举PBX分机号,以及svcrack进行密码安全测试,并整合svreport生成报告。旨在帮助安全从业者从零开始,系统掌握这套经典开源工具,在授权范围内有效评估VoIP系统的安全性。

weixin_29327977的博客 541

在windows下成功的编译和安装python组件hyperscan

摘要:hyperscan 是英特尔推出的一款高性能正则表达式引擎,一次接口调用可以实现多条规则与多个对象之间的匹配,可以支持多种匹配模式,块模式和流模式,它是以PCRE为原型开发,并以BSD许可证开源。 什么是Hyperscan: hyperscan 是英特尔推出的一款高性能正则表达式引擎,一次接口调用可以实现多条规则与多个对象之间的匹配,可以支持多种匹配模式,块模式和流模式,它是以PCRE为原型开发,并以BSD许可证开源。 使用时分2步来实现: 第1步:对规则集进行预编译,编译时可以指定规则集类.

m0_59485658的博客 272

两相变频交错PFC实战:从论文理论到PSIM仿真的完整避坑指南

本文详细解析了两相变频交错PFC技术从理论到PSIM仿真的完整实现过程,特别针对CRM模式下的BOOST PFC设计挑战提供实用解决方案。涵盖周期值比较法与RS触发器法的对比实施、PSIM仿真中的过零处理与收敛性优化等核心问题,并给出硬件实现的进阶建议,助力工程师高效完成高功率密度PFC设计。

weixin_30632089的博客 423

Hyperscan 在鲲鹏服务器上版本编译详细指导

Hyperscan 在鲲鹏服务器上版本编译详细指导 【下载地址】Hyperscan在鲲鹏服务器上版本编译详细指导 Hyperscan 是一款高性能的多模式字符串搜索库,专为大规模数据集的快速搜索设计。它支持广泛的正则表达式语法,并能在多核 CPU 上并行执行,是大数据处理与文本分析的理想工具。本项目提供了在鲲鹏服务器上编...

gitblog_06750的博客 814

微机原理-基于8086电压报警2.5V仿真系统设计

*单片机设计介绍,微机原理-基于8086电压报警2.5V仿真系统设计。

2201_75940997的博客 1083

决策树简介/PPT

最近给我们组新生讲了决策树的相关知识,以下是所做的PPT,参考了网络资源。

垃圾就应该待在垃圾桶里的博客 3796

Hyperscan-5.1.0 安装

安装依赖ragel ragel源码下载地址 编译安装 $ tar -xvf ragel-6.10.tar.gz $ cd ragel-6.10 $ ./configure $ make $ sudo make install $ ldconfig 安装依赖boost boost官网,这里下载的是boost_1_69_0.tar.gz 编译安装,只需要安装iostreams和random就可以了,...

weixin_33805992的博客 717

DeepSeek-V4-Pro 正式版突袭上线:Agent 能力暴涨,DeepSWE 直接干翻 Claude Opus 4.8

8 月 12 日深夜,DeepSeek 悄悄在 API 文档里上架了一个新版本号——DeepSeek-V4-Pro-0813。第二天(13 日),这个版本被确认为 V4 Pro 正式版。没有发布会,没有预热,只改了版本号,就把整个 AI 圈的注意力又抢了过去。

2601_96613114的博客 841

Hyperscan 5.1.0 安装

安装依赖ragel ragel源码下载地址 编译安装 $ tar -xvf ragel-6.10.tar.gz $ cd ragel-6.10 $ ./configure $ make $ sudo make install $ ldconfig 安装依赖boost boost官网,这里下载的是boost_1_69_0.tar.gz 编译安装,只需要安装iostreams和random就可以了 $ tar -xvf boost_1_69_0.tar.gz $ cd boost_1_69_

山塘小鱼儿的博客 1309

用limma包进行多组差异表达分析

写在前面:最近在使用limma包进行差异表达分析,参考了网上许多教程都觉得说的云里雾里,很不清楚。经过我自己一段时间非常痛苦的钻研,弄明白了,解决了我的实际需求。于是决定将我的分析经验写下来,分享给需要的人。 首先加载前期预处理好的表达矩阵。(我的原始表达矩阵文件已附在文后,大家有需要可以下载实践) setwd("E://Rworkplace") data<-read.table...

weixin_40640700的博客 4万+

Eureka常见面试题总结

点击关注我的博客原文 Eureka是Netflix组件的一个子模块,也是核心模块之一。云端服务发现,一个基于 REST 的服务,用于定位服务,以实现云端中间层服务发现和故障转移(来源springcloud中文网的介绍:https://www.springcloud.cc/)。下图总结了Eureka服务端(以下简称服务端)与Eureka客户端(以下简称客户端)之间协同工作的流程: 流程说明:...

u012105931的博客 2万+

hyperscan5.0编译方式整理

linux rhel7.2系统环境 1.安装cmake tar zvxf cmake-3.10.0-rc2.tar cd cmake-3.10.0 ./bootstrap && make && make install 2. python开发库 rpm -ivh python-devel-2.7.5-34.el7.x86_64.rpm 3.安装boost t...

ideal_bj的博客 2522

4.6 知识库使用指南:如何让AI Agent拥有专业知识

本文介绍了如何为AI Agent构建和使用知识库。知识库的作用是为Agent提供专业知识,包含文档、数据和规则,可用于专业问答和知识检索。使用方法包括创建知识库(上传文档)、向量化处理、知识检索以及在Agent中的应用。核心要点是理解知识库的价值和使用流程。文章还提出了构建方法、检索优化和应用实践等思考题,建议准备高质量数据、优化检索效果并持续更新知识库。下节将介绍用LangGraph构建复杂AI应用。

yonggeit的博客 3015

flier/gohs go hyperscan 编译报错

hyperscan

guoguangwu的专栏 1087

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

终极Hyperscan部署指南:从源码编译到生产环境的完整流程

Hyperscan是一款高性能的多正则表达式匹配库,遵循libpcre库的正则表达式语法,却拥有独立的C API。它采用混合自动机技术,支持同时匹配大量(多达数万个)正则表达式,并能在数据流中进行匹配,是深度包检测(DPI)库栈中的关键组件。本指南将带你完成从源码克隆到生产环境部署的全过程,让你快速掌握这一强大工具的使用。 ## 一、准备工作:环境与依赖 在开始编译Hyperscan之前,确保

gitblog_00964的博客 376

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

klogg 日志工具终极速通指南:10GB 大日志秒开秒搜的安装与高效配置

凌晨 2 点,线上服务 CPU 飙红,日志以每秒几千行的速度刷屏。你把 5GB 的日志文件拖进编辑器,界面直接卡死;用 `grep` 过滤,跑了三分钟才出结果;`tail -f` 刷得太快,根本看不清上下文——这是每个程序员和运维都经历过的深夜。**klogg 就是为这种场景而生的开源日志分析工具**:它把 grep、less、tail 三者的能力合体进一个图形界面,直接读取磁盘文件而不加载进内存

gitblog_00989的博客 163

klogg日志查看器安装与快速上手指南:5分钟搞定10GB大文件极速搜索

日志文件动辄几百MB甚至几个GB,编辑器一打开就卡死,搜索一个关键词更是遥遥无期。klogg 就是为解决这个痛点而生的跨平台日志查看器,专为大文件设计,10GB 级别的日志也能秒开秒搜。无论您使用 Windows、macOS 还是 Linux,都能通过这份指南快速上手。 ## 为什么选择 klogg?核心能力一览 klogg 可以看作是 grep、less 和 tail 的图形化结合体,它直接

gitblog_00272的博客 362

为什么选择VectorScan?高性能正则表达式匹配库的跨平台解决方案

在当今数据密集型的应用场景中,高效的正则表达式匹配已成为网络安全、日志分析、数据提取等领域的核心技术需求。如果您正在寻找一个能够在多种硬件平台上提供卓越性能的正则表达式匹配库,那么**VectorScan**正是您需要的解决方案。 ## VectorScan是什么?高性能正则表达式的跨平台演进 **VectorScan**是一个源自Intel Hyperscan的高性能正则表达式匹配库的分支项

gitblog_00711的博客 19

klogg日志查看器:如何快速分析10GB+日志文件的终极指南

klogg是一款基于glogg项目的快速日志查看器,专为程序员和系统管理员设计,提供强大的日志浏览和搜索功能。这款高效的日志分析工具结合了grep、less和tail的图形化交互功能,能够处理巨大的文本文件(10GB以上不是问题),并支持Perl兼容的正则表达式搜索。本教程将为您详细介绍如何在Windows、Mac和Linux三大主流平台上完成klogg的完整安装配置。 ## 🚀 klogg核

gitblog_01011的博客 281

编译hyperscan

1. 需要的环境 hyperscan官方开发文档 1.1 硬件环境 Intel X86平台32位或者64位都可以运行。另外hyperscan在编译时可以添加一些新的特性,如果系统支持: Intel Streaming SIMD Extensions 4.2 (SSE4.2) POPCNT指令 BMI, BMI2指令 Intel AVX2指令 例如: cmake -DCMAKE_C_FLAGS...

2414
上一篇: 批量删除github工程仓库的办法
下一篇: DPDK的源码编译安装
编程十万问
博客等级 码龄7年 2437粉丝 59原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值