Reloading haproxy: [WARNING] 123/172112 (9031) : Setting tune.ssl.default-dh-param to 1024 by defaul

本文介绍了解决HAProxy中加密长度报警的问题。通过调整配置文件中的ssl参数,将默认dh参数从1024增加到2048,解决了安全警告,并提供了具体的配置示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

haproxy加密长度报警



Reloading haproxy: [WARNING] 123/172112 (9031) : Setting tune.ssl.default-dh-param to 1024 by default, if your workload permits it you should set it to at least 2048. Please set a value >= 1024 to make this warning disappear

在以下全局配置里加一行(红色)

global
        log 127.0.0.1 local0 info #[err warning info debug]
        maxconn 65535
        daemon
        nbproc 2
        user nobody
        group nobody
        tune.ssl.default-dh-param 2048

[19-Jul-2025 02:06:28] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-74.sock" [19-Jul-2025 02:06:28] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-74.sock" [19-Jul-2025 02:06:28] NOTICE: fpm is running, pid 9880 [19-Jul-2025 02:06:28] NOTICE: ready to handle connections [19-Jul-2025 04:30:01] NOTICE: Reloading in progress ... [19-Jul-2025 04:30:01] NOTICE: reloading: execvp("/www/server/php/74/sbin/php-fpm", {"/www/server/php/74/sbin/php-fpm", "--daemonize", "--fpm-config", "/www/server/php/74/etc/php-fpm.conf", "--pid", "/www/server/php/74/var/run/php-fpm.pid"}) [19-Jul-2025 04:30:01] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-74.sock" [19-Jul-2025 04:30:01] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-74.sock" [19-Jul-2025 04:30:01] NOTICE: fpm is running, pid 16670 [19-Jul-2025 04:30:01] NOTICE: ready to handle connections [20-Jul-2025 04:30:01] NOTICE: Reloading in progress ... [20-Jul-2025 04:30:01] NOTICE: reloading: execvp("/www/server/php/74/sbin/php-fpm", {"/www/server/php/74/sbin/php-fpm", "--daemonize", "--fpm-config", "/www/server/php/74/etc/php-fpm.conf", "--pid", "/www/server/php/74/var/run/php-fpm.pid"}) [20-Jul-2025 04:30:01] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-74.sock" [20-Jul-2025 04:30:01] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-74.sock" [20-Jul-2025 04:30:01] NOTICE: fpm is running, pid 81380 [20-Jul-2025 04:30:01] NOTICE: ready to handle connections 是什么意思
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值