- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的服务器在 Ubuntu 上运行。我可以从外部站点 ping 我的 IPv6 地址。
当我在 https://ipv6-test.com/validate.php 中测试我的域名时我检查了 AAAA DNS 记录、IPv6 DNS 服务器和 IPv6 Web 服务器。 IPv6 服务器的检查带有注释:“无法识别 Web 服务器”。
我的服务器代码:
package main
import (
"log"
"net/http"
)
func main() {
fs := http.FileServer(http.Dir("./html"))
http.Handle("/", fs)
err := http.ListenAndServe(":80", nil)
if err != nil {
log.Fatal(err)
}
}
就像这个问题
Golang IPv6 server ,我可以通过域名、IP 地址加载我的网页,但不能通过 IPv6 地址 (http://[2607:f1c0:1801:1b4::1])。
sudo ss -6lp
我明白了
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Porttcp LISTEN 0 128 *:http : users:(("go_webserver",pid=131015,fd=5))
me@localhost:~$ sudo netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 448 1.2.3.4:22 11.12.13.14:49978 ESTABLISHED
tcp6 0 0 :::10000 :::* LISTEN
tcp6 0 0 :::21 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
最佳答案
您尝试从浏览器访问该站点的客户端计算机是否支持 ipv6?
您可以通过 ping6 google.com
查看?
关于ubuntu - Golang http 服务器不响应 ipv6 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65299594/
目前部署在 Kubernetes 中的服务,通过 Calico BGP 将 Service 与集群外网络打通,并在外部的 nginx 中配置 Service 地址对外进行服务暴露。经过一段时间的观察
如发现here , 有一种新的 kube 服务是 IPVS 并且有很多负载均衡算法。 唯一的问题是我没有找到指定这些算法的位置。 我的理解: rr:循环法->循环调用后端pod lc:最少连接-> 将
我想尝试这种新的代理模式以及它为我们的一些应用程序提供的各种调度程序。到目前为止,我一直无法找到更改默认模式的方法 iptables至 ipvs在 GKE 节点上。 每个人都说通过--proxy-mo
我想在现有集群中为 IPVS 启用 Kube-proxy 模式。目前,它在 IPtables 上运行。如何在不影响现有工作负载的情况下将其更改为 IPVS? 我已经安装了所有必需的模块来启用它。另外,
我正在开发的应用程序作为 Kubernetes 集群中的部署运行。为此部署创建的 Pod 分布在集群中的各个节点上。我们的应用程序一次只能处理一个 TCP 连接,并且会拒绝进一步的连接。目前,我们使用
我是一名优秀的程序员,十分优秀!