由于項目需要,我在同一服務(wù)器不同域名下配置了兩套workerman程序(都是這樣:[attach]262[/attach]),但是其中一套總宕機,后來就修改了端口號:
1、socket 前端訪問端口號ws://dim.qhd5u.cn:12002
2、注冊端口號:$worker->registerAddress = '127.0.0.1:12003'; applications/im/start_businessworder.php 31 原來1236
3、內(nèi)部通訊起始端口,$gateway->startPort=12004; applications/im/start_gateway.php 32 原來2300
4、注冊端口號,$worker->registerAddress = '127.0.0.1:12003'; applications/im/start_gateway.php 38 原來1236
5、生成注冊實例,$register = new Register('text://0.0.0.0:12003); applications/im/start_register.php 20 原來1236
6、生成webserver實例$web = new WebServer(http: //0.0.0.0:12015);applications/im/start_web.php 25 原來55151
7、注冊中心地址:public static $registerAddress = '127.0.0.1:12003; getewayworker/lib/gateway.php 原來1236
8、注冊中心地址: public $registerAddress = "127.0.0.1:12003"; gatewayworker/businessworker.php 原來1236
9、注冊服務(wù)地址:public $registerAddress = "127.0.0.1:12003"; gatewayworker/gateway.php 原來1236
但是依然不行,請問還需要修改其他的地方嗎?
像這樣的進程名需要修改嗎?
[attach]263[/attach]
[attach]264[/attach]
手冊中有介紹如何運行多個GatewayWorker,沒那么復(fù)雜
http://m.wtbis.cn/gatewaydoc/advanced/multi-gatewayworker-instance.html
嗯,謝謝您的回復(fù)!我看過手冊了,但是我是想單獨出來兩套程序,因為是不同的項目,只是在同一臺服務(wù)器上,現(xiàn)在是程序剛剛運行,會員量也不是很大,基本上是使用的首頁聊天室的程序沒有太大的改動。請問除了端口問題,還會別的情況導(dǎo)致宕機嗎?