nginx配置
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade";
systemctl restart nginx 解决了,核心原因是nginx默认没有开websockets
参考
a
不过是些许风霜罢了