连不上服务,都没有日志看么?

aababa 4 Months+ 235

连不上服务,一直连接中,workerman重启了,也不行。没有日志看是什么问题了?

20231130235108.png20231130235118.png

New Post (9)
  • weenfier 4 Months+
    Quote 2Floor
    检查一下服务器防火墙(如:宝塔/安全)、云服务器安全策略组设置里是否已经开放了TCP协议的 “8520” 端口。

    可以在这个页面远程查看一下是否开放了某端口:http://coolaf.com/tool/port
  • aababa 4 Months+
    Quote 3Floor
    http://coolaf.com/tool/port 
    这个网址扫不了,一直提示ERROR: undefined;if not connect,please download local version
    用站长可以扫,端口是通的
    https://tool.chinaz.com/port
  • aababa 4 Months+
    Quote 4Floor

    20231201130052.png

  • weenfier 4 Months+
    Quote 5Floor
    根据上面的信息真不知道哪个环节有问题,QQ联系我们远程协助看看吧。

    http://www.weensoft.cn/contact.html

  • weenfier 4 Months+
    Quote 6Floor
    用 chrome 或 firefox 浏览器试试看。有些浏览器不支持websocket,或者默认是关闭状态,也会无法连接。
  • aababa 4 Months+
    Quote 7Floor
    同一个浏览器,打开你们的测试站点,是可以连接呢
  • weenfier 4 Months+
    Quote 8Floor
    那肯定还是哪儿没有配置好。

    域名是否做了CDN转发什么的呢?
  • aababa 4 Months+
    Quote 9Floor
    没有做CDN转发,感觉还是workerman有问题

    import websocket

    def on_open(ws):
        print("连接成功")

    def on_message(ws, message):
        print("接收到消息:" + message)

    def on_error(ws, error):
        print("发生错误:" + str(error))

    def on_close(ws):
        print("连接关闭")

    ws = websocket.WebSocketApp("ws://127.0.0.1:8520",
                                on_open=on_open,
                                on_message=on_message,
                                on_error=on_error,
                                on_close=on_close)
    ws.run_forever()

    我用python本地测试,提示
    连接成功
    接收到消息:hello ws!
    发生错误:Connection to remote host was lost.
    发生错误:on_close() takes 1 positional argument but 3 were given
  • weenfier 4 Months+
    Quote 10Floor
    这样吧,省事些:
    官网下载一个welive安装调试一下,welive调试帖:
    http://www.weensoft.cn/bbs/thread-94.htm

    先把welive调试成功,方便找出wecaller调试的问题。
Back
Create New Thread