搞定了,在這里說明一下,以便新手【引以為戒】
手冊仔細(xì)看呀:
運行多個gatewayWorker實例
可以運行多個GatewayWorker實例,步驟如下。
假設(shè)已有Applications/Chat,想增加Applications/Chat2
1、拷貝Applications/Chat到Applications/Chat2
2、更改Applications/Chat2/start_register.php中的端口,1236改為1237(或者改為其它未被占用端口)
3、更改Applications/Chat2/start_businessworker.php中的registerAddress為127.0.0.1:1237
4、更改Applications/Chat2/start_gateway.php中的屬性,包括gateway端口、startPort、registerAddress和進(jìn)程名如下