Redis的初使用(安装、启动服务)

Redis安装:

https://github.com/microsoftarchive/redis/releases/tag/win-3.2.100
Redis的初使用(安装、启动服务)_第1张图片
然后就是普通的安装软件过程,勾选加入环境变量;缓存设置500M,可以通过配置文件修改。

安装好了就在cmd命名行打开安装Redis的文件路径

第一次装,看教程也出现了问题

报错例如:

#Warning: no config file specified, using the default config. In order to specify a config file use redis-server.exe /path/to/redis.conf

creating server tcp listening socket 127.0.0.1:6379: bind No error

解决方案:

1、在redis路径输入redis-server.exe redis.windows.conf命令,发现报错了
Redis的初使用(安装、启动服务)_第2张图片
2、然后继续输入命令redis-cli.exe,这是redis-cli客户端程序
接着输入一下命令即可开启redis

shutdown
exit
redis-server.exe redis.windows.conf

Redis的初使用(安装、启动服务)_第3张图片
OK.

以后当你打开cmd命令行输入redis-server就可以了
Redis的初使用(安装、启动服务)_第4张图片

你可能感兴趣的:(Redis,redis,cmd,windows)