09 2023 档案
摘要:https要使用wss连接,wss://xxxxx.com/wss 就转发到了 服务器内的127.0.0.1:2346服务。 具体转发可以放在 文件配置或者 伪静态里面 建议放在伪静态里面容易管理 nginx配置 location / { if (!-e $request_filename) { r
阅读全文
摘要:一、Apache下的伪静态配置 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUES
阅读全文
摘要:安装 首先通过 composer 安装 composer require topthink/think-worker SocketServer 在命令行启动服务端 php think worker:server 默认会在0.0.0.0:2345开启一个websocket服务。如果需要自定义参数,可以
阅读全文