Kylin Server sp4下nginx安全漏洞修复

一、查看操作系统信息

root@Kylin:~# cat /etc/.kyinfo

二、更新操作系统软件

root@Kylin:~# apt-get update

三、安装所依赖的软件包

1.安装gcc

(1)安装

root@Kylin:~# apt-get install build-essential

(2)查看gcc版本信息

root@Kylin:~# gcc -v

2.安装pcre库

(1)下载源码包

root@Kylin:/usr/local/src# wget https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.43/pcre2-10.43.tar.gz --no-check-certificate

(2)解压软件包

root@Kylin:/usr/local/src# tar -zxvf pcre2-10.43.tar.gz

(3)查看目录内容

root@Kylin:/usr/local/src# cd pcre2-10.43

root@Kylin:/usr/local/src/pcre2-10.43# ls

(4)配置

root@Kylin:/usr/local/src/pcre2-10.42# ./configure

pcre2-10.43 configuration summary:

    Install prefix ..................... : /usr/local

    C preprocessor ..................... :

    C compiler ......................... : gcc

    Linker ............................. : /usr/bin/ld

    C preprocessor flags ............... :

    C compiler flags ................... : -O2 -fvisibility=hidden

    Linker flags ....................... :

    Extra libraries .................... :

    Build 8-bit pcre2 library .......... : yes

    Build 16-bit pcre2 library ......... : no

    Build 32-bit pcre2 library ......... : no

    Include debugging code ............. : no

    Enable JIT compiling support ....... : no

    Use SELinux allocator in JIT ....... : no

    Enable Unicode support ............. : yes

    Newline char/sequence .............. : lf

    \R matches only ANYCRLF ............ : no

    \C is disabled ..................... : no

    EBCDIC coding ...................... : no

    EBCDIC code for NL ................. : n/a

    Rebuild char tables ................ : no

    Internal link size ................. : 2

    Maximum variable lookbehind ........ : 255

    Nested parentheses limit ........... : 250

    Heap limit ......................... : 20000000 kibibytes

    Match limit ........................ : 10000000

    Match depth limit .................. : MATCH_LIMIT

    Build shared libs .................. : yes

    Build static libs .................. : yes

    Use JIT in pcre2grep ............... : no

    Enable callouts in pcre2grep ....... : yes

    Enable fork in pcre2grep callouts .. : yes

    Initial buffer size for pcre2grep .. : 20480

    Maximum buffer size for pcre2grep .. : 1048576

    Link pcre2grep with libz ........... : no

    Link pcre2grep with libbz2 ......... : no

    Link pcre2test with libedit ........ : no

    Link pcre2test with libreadline .... : no

    Valgrind support ................... : no

    Code coverage ...................... : no

    Fuzzer support ..................... : no

    Differential fuzzer support ........ : no

    Use %zu and %td .................... : auto

(5)编译

root@Kylin:/usr/local/src/pcre2-10.43# make -j $(nproc)

(6)安装

root@Kylin:/usr/local/src/pcre2-10.42# ./make install

(7)查看安装后的版本号

root@Kylin:~# pcre2-config --version

3.安装zlib库

(1)下载源码包

root@Kylin:/usr/local/sr

相关推荐

  1. 通过 Nginx 修复 CORS 漏洞

    2024-03-21 22:30:01       24 阅读
  2. 服务器漏洞安全修复记录

    2024-03-21 22:30:01       31 阅读
  3. 安全通告:NGINX HTTP/3 QUIC 漏洞

    2024-03-21 22:30:01       31 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-21 22:30:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-21 22:30:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-03-21 22:30:01       87 阅读
  4. Python语言-面向对象

    2024-03-21 22:30:01       96 阅读

热门阅读

  1. 二、Spring源码学习之prepareRefresh方法

    2024-03-21 22:30:01       47 阅读
  2. 【LeetCode-46.全排列】

    2024-03-21 22:30:01       41 阅读
  3. RecyclerView万能适配器之BaseQuickAdapter方法详解

    2024-03-21 22:30:01       41 阅读
  4. Python PEP 8 代码风格指南

    2024-03-21 22:30:01       40 阅读
  5. Python电子邮件自动化实战案例

    2024-03-21 22:30:01       34 阅读
  6. 每日一题 第二十期 洛谷 烤鸡

    2024-03-21 22:30:01       45 阅读