windows 7上的redis cli具有奇怪的ascii字符
在windows上运行redis cli时,会显示以下消息windows 7上的redis cli具有奇怪的ascii字符,redis,Redis,在windows上运行redis cli时,会显示以下消息 redis 127.0.0.1:6379> help @generic [1mDEL[0m [90mkey [key ...][0m ....... [1mDUMP[0m [90mkey[0m [33msummary:[0m Return a serialized version of the value stored at the fied key. [33msin
redis 127.0.0.1:6379> help @generic
[1mDEL[0m [90mkey [key ...][0m
.......
[1mDUMP[0m [90mkey[0m
[33msummary:[0m Return a serialized version of the value stored at the fied key.
[33msince:[0m 2.6.0
[1mEXISTS[0m [90mkey[0m
[33msummary:[0m Determine if a key exists
[33msince:[0m 1.0.0
似乎有一些ascii颜色字符不显示在窗口中显示的颜色。我需要在windows 7中进行一些配置吗?这些unix TTY颜色代码并不适用于windows上的cmd.exe,您看到的是一个尚未解决的小问题 Windows上的Redis是测试版软件。 MSOpenTech将重点放在redis服务器上是有道理的,而不是放在redis cli上,后者主要是一个技术上不需要的测试客户端。最重要的是,redis cli工作正常,只有
HELP
和其他反馈的默认格式有问题
您可以使用此redis cli选项解决此问题:
--raw Use raw formatting for replies (default when STDOUT is
not a tty).
要查看所有选项,请执行以下操作:
redis-cli --help
如果它困扰您,请在()上发布一个问题
希望这有帮助,TW