2021年4月17日

redis命令bigkey检查

摘要: ./redis-cli -h ip -p port -a password --bigkeys #输出结果:临时搭建环境,没有key做检查 [root@localhost /usr/local/redis-5.0.4]# redis-cli -a redis --bigkeys Warning: U 阅读全文

posted @ 2021-04-17 09:41 小舟868 阅读(448) 评论(0) 推荐(0)

2021年4月16日

Redis使用Python脚本检查bigkey

摘要: 脚本内容如下:测试时候用的python3安装redis模块,因为脚本只用了redis和sys模块 [root@localhost ~/scripts]# cat find_bigkey.py import sys import redis def check_big_key(r, k): bigKe 阅读全文

posted @ 2021-04-16 22:19 小舟868 阅读(211) 评论(0) 推荐(0)

2020年4月7日

redhat7.6安装python3 pip3

摘要: 安装python 1.安装环境 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-develreadline-devel tk-devel gdbm-devel db4-devel libpcap-dev 阅读全文

posted @ 2020-04-07 18:32 小舟868 阅读(1159) 评论(0) 推荐(0)

2020年4月5日

python 7 模块

摘要: yagmail模块 邮件发送import yagmail#连接邮箱服务器yag = yagmail.SMTP(user=‘18618250232@163.com’, password=‘abc123’, host=‘smtp.163.com’)#发送邮件yag.send(to=[‘186182502 阅读全文

posted @ 2020-04-05 13:19 小舟868 阅读(96) 评论(0) 推荐(0)

2020年4月4日

redis集群搭建:解决gem install redis报错

摘要: 在使用ruby脚本安装Redis集群时,需要先安装Ruby语言环境和redis插件,但是安装redis插件时遇到以下报错,下面记录一下解决过程。 因为执行Ruby脚本需要Ruby语言环境,所以首先安装Ruby语言环境和Ruby的包管理器Gems。 然后使用gem安装Redis和Ruby的接口。 Ru 阅读全文

posted @ 2020-04-04 20:34 小舟868 阅读(2070) 评论(0) 推荐(0)

连外网网上文件设置

摘要: Linux解决ip ping不通百度的问题原创aaaaajiboke 最后发布于2019-01-22 15:20:21 阅读数 6777 收藏展开Linux解决ip ping不通百度的问题首先先把Linux中的ip设置好,在这里我的本地的VM8的 IP4的地址是 192.168.101.1 然后看L 阅读全文

posted @ 2020-04-04 19:52 小舟868 阅读(162) 评论(0) 推荐(0)

redis-4.0.11集群搭建

摘要: https://www.jianshu.com/p/abff4b70915a 阅读全文

posted @ 2020-04-04 13:18 小舟868 阅读(203) 评论(0) 推荐(0)

2020年4月2日

redis:::::Could not connect to Redis No route to host问题解决

摘要: 问题原因:防火墙 解决办法: 一、停止Linux的防火墙(不建议) $ systemctl stop firewalld.service 其他相关命令 #显示服务的状态 $ systemctl status firewalld.service #启动防火墙 $ systemctl start fir 阅读全文

posted @ 2020-04-02 18:35 小舟868 阅读(1566) 评论(0) 推荐(0)

2020年3月29日

redis.conf中bind绑定IP不对,redis集群创建节点的时候,报错|redi群集密码设置

摘要: Redis 配置文件中bind参数 前言# 我们都知道,redis 的配置文件中,默认绑定接口是 127.0.0.1,也就是本地回环接口,所以是无法从外网连接 redis 服务的。如果想要让外网也能连接使用服务器上的 redis 服务,可以简单地注释掉 bind 这一行。但对于 bind 参数的作用 阅读全文

posted @ 2020-03-29 20:41 小舟868 阅读(1946) 评论(0) 推荐(0)

错误编辑/etc/fstab导致无法正常开机

摘要: /dev/cdrom /mnt iso9660 defaults 0 0 阅读全文

posted @ 2020-03-29 15:46 小舟868 阅读(199) 评论(0) 推荐(0)

导航