注:php版本是5.3.3
workerman启动时提示 Gateway: Worker key does not match !==
# php start.php start
Workerman start in DEBUG mode
----------------------- WORKERMAN -----------------------------
Workerman version:3.3.2 PHP version:5.3.3
------------------------ WORKERS -------------------------------
user worker listen processes status
root f_ChatBusinessWorker2 none 4
root apptcp2 tcp://0.0.0.0:56251 8
root Register text://0.0.0.0:1237 1
root TaskWorker2 text://0.0.0.0:56451 2
----------------------------------------------------------------
Gateway: Worker key does not match !==
Gateway: Worker key does not match !==
Gateway: Worker key does not match !==
同台机子部署两个workerman实例,端口都设置不一样,我怀疑是不是两个wokerman实例的Register进程名一样导致的呢?
你搜下代码是不是设置了secretKey,不要设置这个属性。
没设置
打开Gateway.php
搜下 Worker key does not match
var_dump($worker_info, $this->secretKey) 打印下