阿里云服务器搭建网站教程_聚合服务器搭建方法

阿里云服务器搭建网站教程_聚合服务器搭建方法,第1张

阿里服务器搭建网站教程_聚合服务器搭建方法 一. 登录阿里云服务器并安装redisDownload, extract and compile Redis with:$ wget https://download.redis.io/releases/redis-6.2.1.tar.gz$ tar xzf redis-6.2.1.tar.gz$ cd redis-6.2.1$ makeThe binaries that are now compiled are available in the src directory. Run Redis with:$ src/redis-server或者执行,nohup src/redis-server & 来后台运行You can interact with Redis using the built-in client:$ src/redis-cliredis> set foo barOKredis> get foo"bar"二. 在安全组规则里面添加访问规则,开启6379端口。

三. 连接redis的时候,出现redis.exceptions.ResponseError: DENIED Redis is running in protected mode because protected mode is enabled 错误这时,设置protected-mode no即可最后用 Another Redis DeskTop Manager输入阿里云主机和端口,即可连接redis数据库。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/649158.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-17
下一篇 2022-04-17

发表评论

登录后才能评论

评论列表(0条)

保存