1.安装命令:
redis-server.exe –service- install redis.windows.conf –loglevel verbose
2.卸载命令:
redis-server –service-uninstall
3.启动
redis-cli -h 127.0.0.1 -p 6379 -a 123456
4.设置认证密码
config set requirepass 123456
5,检查密码是否正确
auth password
6,检查服务器是否运行正常
ping -> pong
7,关闭连接
quit
8,选择那个数据库
select index(第几个)
Redis学习笔记-配置篇
最新推荐文章于 2024-08-16 21:46:31 发布