001.使用redis-cli连接远程数据库 cmd到redis的bin目录使用 redis-cli -h host -p port -a password 登录进去之后光标前面会出现远程的IP地址,然后使用 select n 来切换数据库