1、准备需要查看的文件,我使用的appendonly.aof使用grep命令查看提示Binary file (standard input) matches
2、想要按文本格式来查看需要在grep后面加-a参数即可,也就是需要使用grep -a