windows操作系統(tǒng)下無法在一個php文件里初始化多個Worker
當前在 workerStart 事件中調(diào)用 Client::connect()
其他環(huán)境沒問題, windows環(huán)境下會提示multi workers init in one php file are not support
?請問在windows 環(huán)境下怎么實現(xiàn)在 workerman 中使用 Channel 通訊呢?
[attach]2331[/attach]
?
我在 windows 環(huán)境下將這幾個服務拆開
?
但是在 worker 的 onWorkerStart 事件中要連接一下 Channel 然后綁定事件
[attach]2332[/attach]
我想著是通過3次命令分別開啟
php think workerman start channel
php think workerman start admin
php think workerman start chat
@1: 運行php think workerman start channel沒問題
運行php think workerman start admin 的時候就會提示
multi workers init in one php file are not support
發(fā)是因為在onWrokerStart 中執(zhí)行了 Client::connect
感謝你的回復
我剛剛檢查了一下發(fā)現(xiàn)Channel 監(jiān)聽的 IP是'0.0.0.0'時會重復提示W(wǎng)aring channel connection closed and try to reconnect,原因不知道,改掉就好