1、 在window上找到redis的安装目录,修改redis.windows.conf文件,在里面将默认端口改为你想要的端口号 2、将redis.windows.conf文件直接拖入redis-server.exe,弹出窗口