分布式改造剧集3:Ehcache分布式改造 (2)

​ 假设有三台机器,则他们分别得配置如下:

#应用1,在4447端口监听 #缓存同步消息发送地址(如果同步到多台需要配置多台地址,多台地址用英文逗号分隔) distribute.ehcache.providerAddresses=127.0.0.1:4446,127.0.0.1:4448 #缓存同步监听端口和IP distribute.ehache.listenPort=4447 distribute.ehcache.listenIP=localhost #应用2,在4448端口监听 #缓存同步消息发送地址(如果同步到多台需要配置多台地址,多台地址用英文逗号分隔) distribute.ehcache.providerAddresses=127.0.0.1:4446,127.0.0.1:4447 #缓存同步监听端口和IP distribute.ehache.listenPort=4448 distribute.ehcache.listenIP=localhost #应用3,在4446端口监听 #缓存同步消息发送地址(如果同步到多台需要配置多台地址,多台地址用英文逗号分隔) distribute.ehcache.providerAddresses=127.0.0.1:4447,127.0.0.1:4448 #缓存同步监听端口和IP distribute.ehache.listenPort=4446 distribute.ehcache.listenIP=localhost 使用

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zgzzgf.html