perf:禁用 IPv6 解析
- 在 nginx 配置文件中添加 ipv6=off 参数 - 优化 DNS 解析性能,避免不必要的 IPv6 查询
This commit is contained in:
parent
e77a2c69fb
commit
bf64ee0eb6
@ -16,7 +16,7 @@ http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
resolver 127.0.0.11 valid=30s ipv6=off;
|
||||
|
||||
# 日志
|
||||
#access_log /var/log/nginx/access.log main buffer=32k flush=5s;
|
||||
|
||||
@ -16,7 +16,7 @@ http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
resolver 127.0.0.11 valid=30s ipv6=off;
|
||||
|
||||
# 日志
|
||||
#access_log /var/log/nginx/access.log main buffer=32k flush=5s;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user