到達(dá)一下這一步就有報(bào)錯(cuò)
報(bào)錯(cuò)如下
Exception: Can not connect to tcp://127.0.0.1:1238 Connection refused in /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php:1300
Stack trace:
#0 /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php(726): GatewayClient\Gateway::getAllGatewayAddressesFromRegister()
#1 /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php(701): GatewayClient\Gateway::getAllGatewayAddress()
#2 /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php(383): GatewayClient\Gateway::getBufferFromAllGateway(Array)
#3 /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php(159): GatewayClient\Gateway::getClientIdByUid('1')
#4 /mnt/hgfs/wwwweb/application/push/controller/Verify.php(76): GatewayClient\Gateway::isUidOnline('1')
Register注冊(cè)的是局域網(wǎng)ip 這里提示報(bào)錯(cuò)怎么還是連接本機(jī)ip
已解決,Register監(jiān)聽(tīng)地址不能為局域網(wǎng)或者外網(wǎng)地址。。只能監(jiān)聽(tīng)本地127.0.0.1或者0.0.0.0