Redis 注册中心安装
Redis 1 使用方式参见: Redis 注册中心参考手册。
只需搭一个原生的 Redis 服务器,并将快速启动中 Provider 和 Consumer 里的 conf/dubbo.properties
中的 dubbo.registry.address
的值改为 redis://127.0.0.1:6379
即可使用。
Redis 注册中心集群 2 采用在客户端同时写入多个服务器,读取单个服务器的策略实现。
安装:
wget http://redis.googlecode.com/files/redis-2.4.8.tar.gz
tar xzf redis-2.4.8.tar.gz
cd redis-2.4.8
make
配置:
vi redis.conf
启动:
nohup ./src/redis-server redis.conf &
停止:
killall redis-server
- 命令行 3:
./src/redis-cli
hgetall /dubbo/com.foo.BarService/providers
或者:
telnet 127.0.0.1 6379
hgetall /dubbo/com.foo.BarService/providers
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
最后修改 March 4, 2021: Update dubbo-10years.md (#744) (b3f7099)