Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation tutorial of nginx-qat under centos7

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "installation tutorial of nginx-qat under centos7". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Overview:

The information of qat is mainly found on intel's official website and github.

Intel official website: 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

On the official website, there are mainly driver installation packages, installation instructions, configuration files and other instructions. According to your QAT card model, download the corresponding driver on the official website and check the corresponding installation instructions for installation. Then install nginx-qat to run through all the tests first, and finally check the configuration file and other instructions of pdf to modify the corresponding configuration file as needed.

Installation

Environment:

Qat: Intel QuickAssist Technology DH895xCCkernel: 3.10.0-693.el7.x86_64

Environment variable setting

# 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. Install 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

two。 Install 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. Install qat_engine and test whether QAT card can be used for encryption and decryption.

# 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. Install 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/ C6xxroomdev* / etc/# service qat_service restart#. / setenv.sh# cd $QZ_ROOT/test/performance_tests#. / run_perf_test.sh

5. Install 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-IQZ _ 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. Running test (before modifying the configuration file of the qat driver) is detailed in the following issue https://github.com/intel/asynch_mode_nginx/issues/28

# cd ~ / nginx-qat/asynch_mode_nginx/test#. / nginx-test qat "installation tutorial for nginx-qat under centos7" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report