在ip:port前面加上@用来表示密码,比如password@ip:port <add key="RedisServer" value="123456@127.0.0.1:6379"/> 转载于:https://www.cnblogs.com/MrZheng/p/11282371.html