大网数据广告活动
服务器运维问答

Is it safe to disable IPv6 on my Debian server?

· 52CE 我爱测

My server hosts 2 different websites which lately have been slow to load on browsers. After looking at potential causes and solutions online, I came across this thread . One of the advised solutions was to disable IPv6 which I'd …

问题原文

原帖链接 · EmL · CC BY-SA 4.0

My server hosts 2 different websites which lately have been slow to load on browsers.

After looking at potential causes and solutions online, I came across this thread.

One of the advised solutions was to disable IPv6 which I'd like to try, however, As I have no proficiency in this area, I first want to make sure I understand exactly what this will do (what are the consequences of doing so), and if OK then know what is the safe way to do so without breaking my server/websites.

已采纳解答

原帖链接 · John Mahowald · CC BY-SA 4.0

No, do not disable IPv6. It breaks things, turns users without v4 away, and makes more work for your future project to use IPv6.

A host with only IPv4 addresses and routes will serve web sites just fine without doing anything. v4 and dual stack hosts can still get to it.

You cite forum posts circa 2008. And even then disabling IPv6 was an uninformed shot in the dark, I see no v6 in use in their terminal output. Further, in the time since, IPv6 has gone from early adopters to mature and widely deployed.

Use web site performance analytics to measure what is slow. Tools exist to simulate real user load on a slow connection, or to instrument actual user performance in their browser. Use F12 browser developer tools, for example. Prove exactly which requests. Then trace requests through your web server stack and see what is involved in serving it.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-12-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。