fixed register ip
This commit is contained in:
parent
e66e0d1a68
commit
6144dea271
@ -17,7 +17,7 @@ class ImController extends BaseLikeAdminController
|
||||
public function __construct(App $app)
|
||||
{
|
||||
parent::__construct($app);
|
||||
Gateway::$registerAddress = "172.19.97.179:1236";
|
||||
Gateway::$registerAddress = "172.19.97.179:1256";
|
||||
}
|
||||
|
||||
//获取场景值
|
||||
|
@ -17,7 +17,7 @@ $worker->name = 'PushBusinessWorker';
|
||||
$worker->count = 4;
|
||||
|
||||
// 服务注册地址
|
||||
$worker->registerAddress = '127.0.0.1:1236';
|
||||
$worker->registerAddress = '127.0.0.1:1256';
|
||||
|
||||
// 注册服务类
|
||||
$worker->eventHandler = 'workerim\Events';
|
||||
|
@ -23,7 +23,7 @@ $gateway->lanIp = '172.19.97.179';
|
||||
$gateway->startPort = 3900;
|
||||
|
||||
// 服务注册地址
|
||||
$gateway->registerAddress = '127.0.0.1:1236';
|
||||
$gateway->registerAddress = '127.0.0.1:1256';
|
||||
|
||||
// 心跳间隔
|
||||
$gateway->pingInterval = 20;
|
||||
|
@ -6,7 +6,7 @@ use \GatewayWorker\Register;
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
|
||||
// register 必须是text协议,切记不能将register端口开放给外网
|
||||
$register = new Register('text://127.0.0.1:1236');
|
||||
$register = new Register('text://127.0.0.1:1256');
|
||||
|
||||
// 如果不是在根目录启动,则运行runAll方法
|
||||
if(!defined('GLOBAL_START'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user