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

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

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

PS C:\Users\Asus\Desktop\vue-project2> npm run dev > vue-project@0.0.0 dev > vite VITE v7.1.4 ready in 973 ms ➜ Local: http://localhost:3000/ ➜ Network: use --host to expose ➜ Vue DevTools: Open http://localhost:3000/__devtools__/ as a separate window ➜ Vue DevTools: Press Alt()+Shift()+D in App to toggle the Vue DevTools ➜ press h + enter to show help 10:29:07 [vite] (client) Pre-transform error: Failed to resolve import "@/stores/userStore" from "src/App.vue". Does the file exist? Plugin: vite:import-analysis File: C:/Users/Asus/Desktop/vue-project2/src/App.vue:15:30 14 | /* Injection by vite-plugin-vue-inspector End */ 15 | 16 | import { useUserStore } from '@/stores/userStore'; | ^ 17 | 18 | const _sfc_main = { 10:29:07 [vite] Internal server error: Failed to resolve import "@/stores/userStore" from "src/App.vue". Does the file exist? Plugin: vite:import-analysis File: C:/Users/Asus/Desktop/vue-project2/src/App.vue:15:30 14 | /* Injection by vite-plugin-vue-inspector End */ 15 | 16 | import { useUserStore } from '@/stores/userStore'; | ^ 17 | 18 | const _sfc_main = { at TransformPluginContext._formatLog (file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite/dist/node/chunks/dep-C6pp_iVS.js:31522:43) at TransformPluginContext.error (file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite/dist/node/chunks/dep-C6pp_iVS.js:31519:14) at normalizeUrl (file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite/dist/node/chunks/dep-C6pp_iVS.js:29991:18) at async file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite/dist/node/chunks/dep-C6pp_iVS.js:30049:32 at async Promise.all (index 1) at async TransformPluginContext.transform (file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite/dist/node/chunks/dep-C6pp_iVS.js:30017:4) at async file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite-plugin-inspect/dist/shared/vite-plugin-inspect.BzUKaD4x.mjs:403:17 at async EnvironmentPluginContainer.transform (file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite/dist/node/chunks/dep-C6pp_iVS.js:31320:14) at async loadAndTransform (file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite/dist/node/chunks/dep-C6pp_iVS.js:26407:26) at async viteTransformMiddleware (file:///C:/Users/Asus/Desktop/vue-project2/node_modules/vite/dist/node/chunks/dep-C6pp_iVS.js:27492:20) 10:29:07 [vite] (client) ✨ new dependencies optimized: pinia, vue-router 10:29:07 [vite] (client) ✨ optimized dependencies changed. reloading 10:29:13 [vite] (client) Pre-transform error: Failed to resolve import "@/stores/userStore" from "src/App.vue". Does the file exist? Plugin: vite:import-analysis File: C:/Users/Asus/Desktop/vue-project2/src/App.vue:15:30 14 | /* Injection by vite-plugin-vue-inspector End */ 15 | 16 | import { useUserStore } from '@/stores/userStore'; | ^ 17 | 18 | const _sfc_main = {
09-19
[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、付费专栏及课程。

余额充值