现象
dubbo服务的默认端口是20880,按照网上教程想查看dubbo服务,报错
- telnet 127.0.0.1 20880
- dubbo>ls
Dubbo Telnet Unsupported command: ls
原因
Please use the specific QOS port for QOS commands, by default is 22222
从dubbo 2.5.8开始,引入了QoS模块,别问我QoS啥意思,我查了半天没查到
ls属于QoS command,所以我们要telnet 127.0.0.1 20880
这时候会打出dubbo的大banner,但是还是不支持ls,权限不够
解决方案:
参照 https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/reference-manual/qos/overview/#permissions
在application.yml里加 dubbo.application.qos-anonymous-access-permission-level=PROTECTED 就可以了
可以了哈哈哈
标签:dubbo,qos,20880,telnet,ls,QoS From: https://www.cnblogs.com/jin-wen-xin/p/18208392