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、注意