一:准备redis导入所需要的数据格式
set key1 value1
set key2 value2
set key3 value3
###二: unix2dos 如果没有该命令,请先安装
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/dos2unix-6.0.3-7.el7.x86_64.rpm
rpm -ivh dos2unix-6.0.3-7.el7.x86_64.rpm
###三: unix2dos 转码
unix2dos creditScore-data.txt
###四:导入数据 unix2dos 转码
cat creditScore-data.txt | ./redis-cli -a "密码" --pipe