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