1.本地打开redis `redis-cli` 2.远程打开redis `redis-cli -h host -p port -a password` 例:`redis-cli -h 127.0.0.1 -p 6379 -a "mypass"`