redis服务器闪退,由于目标计算机积极拒绝,无法连接

出现这句话“由于目标计算机积极拒绝,无法连接”,一般是没有启动redis-server.exe
可是一旦在当前安装目录下启动Redis-server.exe直接闪退,我蒙了。

redis-server redis.windows.conf

出现错误:

[6852] 19 Jun 17:06:50.000 # QForkMasterInit: system error caught. error code=0x
00000070, message=CreateFileMapping failed.: no space on device

解决办法:

在redis.windows.conf配置文件中添加两个参数
在redis的配置文件(我的是windows版本的)中加入maxmemory和maxheap配置(单位为字节)

maxmemory 268268156
maxheap 314643700

再次启动,输入命令

redis-server redis.windows.conf

就启动成功啦!

你可能感兴趣的:(插件安装)