如題,若有兩套不同功能的應(yīng)用,是否只要改 Gateway.conf 及 Monitor.conf 的 Listen Port 就可以安裝在同一臺(tái)主機(jī)上?
謝謝。
可以跑兩套應(yīng)用。
假設(shè)原來(lái)的應(yīng)用為 applications/Demo
再架設(shè)一套applications/Demo2的方法如下
1、拷貝一份副本,cp applications/Demo applications/Demo2
2、更改副本中的配置 applications/Demo2/Config/Store.php 使之與 applications/Demo/Store.php的配置不同
3、拷貝一份Gateway.conf BusinessWorker.conf 例如Gateway2.conf BusinessWorker2.conf并設(shè)置不同的端口
謝謝您的回答。
再請(qǐng)問(wèn)
其中的 applications/Demo2/Config/Store.php 是否能詳細(xì)說(shuō)明如何配置。
兩個(gè)應(yīng)用程式 Store 的 Key 會(huì)不會(huì)互相衝突?
謝謝.
Config/Store 配置說(shuō)明在這里
http://doc.workerman.net/start/store_config.html
正式環(huán)境需要用memcache,兩套應(yīng)用使用不同的memcache端口,否則數(shù)據(jù)可能會(huì)混亂
開(kāi)發(fā)環(huán)境可以不裝memcache,兩套應(yīng)用要求public static $storePath 配置不一樣