1、WebSocket connection to 'wss://
ip:
端口/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
1. ps -aux | grep Server 查看服务是否开启
2. 如果显示如图所示,直接跳到下一步
进入web-supported目录,执行sudo chmod +x *.sh && ./start.sh
3. 测试时建议先关闭防火墙
3.1 关闭防火墙
CentOS7关闭防火墙:systemctl stop firewalld
,
CentOS6关闭防火墙: service iptables stop
3.2 配置安全组
3.3 开放端口
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload
2、WebSocket connection to 'wss://ip:端口/' failed: Error in connection establishment: net::ERR_CERT_COMMON_NAME_INVALID
1.关闭防火墙 systemctl stop firewalld
2.添加网站信任 https://ip:端口
3、WebSocket connection to 'wss://ip:端口/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
对应端口的服务未开启
4、注意