centos7下nginx-qat的安装教程
本篇内容介绍了“centos7下nginx-qat的安装教程”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
独山网站建设公司创新互联建站,独山网站设计制作,有大型网站制作公司丰富经验。已为独山上千提供企业网站建设服务。企业网站搭建\外贸网站建设要多少钱,请找那个售后服务好的独山做网站的公司定做!
概述:
qat的资料主要在intel官网和github上找
intel官网:https://01.org/zh/packet-processing/intel%C2%AE-quickassist-technology-drivers-and-patches?langredirect=1&tdsourcetag=s_pcqq_aiomsg
github:https://github.com/intel/asynch_mode_nginx
官网上主要是驱动的安装包,安装说明,配置文件和其它说明,根据自己的qat卡型号,在官网上下载对应的驱动,查看对应的安装说明进行安装。然后安装nginx-qat先跑通所有的测试,最后根据需要去查看配置文件和其它说明的pdf修改对应的配置文件
安装
环境:
qat : Intel QuickAssist Technology DH895xCC kernel: 3.10.0-693.el7.x86_64
环境变量设置
# export NGINX_INSTALL_DIR=/usr/local/nginx # export OPENSSL_LIB=/usr/local/ssl # export QZ_ROOT=/root/nginx-qat/QATzip # export ICP_ROOT=/root/nginx-qat/QAT_Driver # export NGINX_SRC_DIR=/root/nginx-qat/asynch_mode_nginx # export QATZIP_SRC_DIR=/root/nginx-qat/QATzip # export OPENSSL_SRC_DIR=/root/nginx-qat/openssl-1.1.1c # export PERL5LIB=$PERL5LIB:/root/nginx-qat/openssl-1.1.1c # export LD_LIBRARY_PATH=/root/nginx-qat/QAT_Driver/build
1.安装 qat_driver
# cd ~ # mkdir nginx-qat # cd nginx-qat # mkdir QAT_Driver # cd QAT_Driver # wget https://01.org/zh/packet-processing/intel%C2%AE-quickassist-technology-drivers-and-patches?langredirect=1&tdsourcetag=s_pcqq_aiomsg # tar -zxvf qat1.7.l.4.6.0-00025.tar.gz # ./configure # make # make install # lsmod | fgrep qa
2.安装openssl
# cd ~/nginx-qat/openssl # ./config --prefix=/usr/local/ssl -Wl,-rpath=/usr/local/ssl/lib # make depend # make # make install # export OPENSSL_ENGINES=/usr/local/ssl/lib/engines-1.1
3.安装 qat_engine,安装完测试是否可以使用qat卡进行加解密
# cd ~/nginx-qat # git clone https://github.com/intel/QAT_Engine.git # cd QAT_Engine/ # ./autogen.sh # ./configure --with-qat_dir=/root/nginx-qat/QAT_Driver --with-openssl_dir=/root/nginx-qat/openssl-1.1.1c --with-openssl_install_dir=/usr/local/ssl --enable-upstream_driver --enable-usdm # make # make install # cp qat/config/c6xx/multi_process_optimized/c6xx_dev* /etc/ # service qat_service restart # /usr/local/ssl/bin/openssl engine -t -c -vvvv qat
4.安装qat_zip
# cd ~/nginx-qat # git clone https://github.com/intel/QATzip.git # cd QATzip/ # service qat_service stop # echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages # rmmod usdm_drv # insmod $ICP_ROOT/build/usdm_drv.ko max_huge_pages=1024 max_huge_pages_per_process=16 # ./configure --with-ICP_ROOT=$ICP_ROOT # make clean # make all install # cp config_file/c6xx/multiple_process_opt/c6xx_dev* /etc/ # service qat_service restart # ./setenv.sh # cd $QZ_ROOT/test/performance_tests # ./run_perf_test.sh
5.安装nginx-test
# cd ~/nginx-qat/ # git clone https://github.com/intel/asynch_mode_nginx.git # ./configure --prefix=$NGINX_INSTALL_DIR --with-http_ssl_module --add-dynamic-module=modules/nginx_qatzip_module --add-dynamic-module=modules/nginx_qat_module/ --with-cc-opt="-DNGX_SECURE_MEM -I$OPENSSL_LIB/include -I$QZ_ROOT/include -Wno-error=deprecated-declarations" --with-ld-opt="-Wl,-rpath=$OPENSSL_LIB/lib -L$OPENSSL_LIB/lib -L$QZ_ROOT/src -lqatzip -lz" # make # make install
6.运行test(在这之前要修改qat驱动的配置文件) 详见下面这个issue https://github.com/intel/asynch_mode_nginx/issues/28
# cd ~/nginx-qat/asynch_mode_nginx/test # ./nginx-test qat
“centos7下nginx-qat的安装教程”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注创新互联网站,小编将为大家输出更多高质量的实用文章!
标题名称:centos7下nginx-qat的安装教程
转载来源:http://pwwzsj.com/article/pcipsp.html