redis
xiangzilong
这个作者很懒,什么都没留下…
展开
-
redis 迁移工具迁移
[root@k8s-master ~]# cat go.sh #!/bin/bashwget https://dl.google.com/go/go1.17.5.linux-amd64.tar.gztar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gzsed -i '$a export PATH=$PATH:/usr/local/go/bin ' /etc/profilesed -i '$a export GOPROXY=https://gopro.原创 2021-12-22 20:45:14 · 557 阅读 · 0 评论 -
redis 内存大小调节
maxmemory 6147483648 很明显这里的大小是字节6147483648 /1024/1024/1024 = 5.72G[root@log-redis-29 ~]# cat /data/redis/6379/conf/redis.conf | grep maxmaxmemory 6147483648slowlog-max-len 128hash-max-ziplist-entries 512hash-max-ziplist-value 64list-max-ziplis..原创 2021-07-21 20:38:37 · 363 阅读 · 0 评论 -
redis 6.2.2 安装
tar -xf redis-6.2.2.tar.gz yum -y install gcc cd redis-6.2.2make && make install mkdir -p /data/redis/6379/{conf,db,log}cdmv redis-6.2.2 /usr/local/rediscp /usr/local/redis/redis.conf /data/redis/6379/conf/[root@test1-redis-38 ~]# gre.原创 2021-04-22 18:38:37 · 989 阅读 · 0 评论 -
解决redis 链接数过高
[root@node2-123 ~]# netstat -antp | grep :6379 |grep ESTABLISHED | awk '{print $7}' | sort | uniq -c 49 - 21 10751/datacenter 473 11895/product-api 302 20598/external-ui 3288 22238/task-schedule 7648 23572/boss 12 26076/exter.原创 2021-04-19 20:23:52 · 529 阅读 · 0 评论 -
reids TIME_WAIT
今天redis出现大量的TIME_WAIT ,导致所有服务异常netstat -nutlpa | grep 6679[root@dc-uat-13 ~]# cat /etc/sysctl.conf | tail -4net.ipv4.tcp_syncookies = 1net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_tw_recycle = 1net.ipv4.tcp_fin_timeout = 30立即生效sysctl -p ne...原创 2020-11-30 21:00:03 · 1407 阅读 · 0 评论 -
redis 最大连接数查看
[root@dc-uat-13 ~]# redis-cli -h 10.1.1.242 -p 6679 -a 'MkdGH*3ldf' info | grep connected_clientsWarning: Using a password with '-a' or '-u' option on the command line interface may not be safe.connected_clients:464[root@dc-uat-13 ~]# redis-cli -h 1.原创 2020-11-30 16:10:02 · 1831 阅读 · 0 评论 -
codis 搭建高可用集群
1,go环境安装[root@ansible-11 go]# tree.├── hosts├── install_go.yaml└── pkg └── go1.7.1.linux-amd64.tar.gz[root@ansible-11 go]# cat install_go.yaml ---- hosts: go vars: remote_user: root gather_facts: false tasks: - name: 分发go二进制包.原创 2020-07-25 11:15:05 · 260 阅读 · 0 评论 -
codis FE 图形添加
FE界面配置redis主从原创 2020-07-22 18:55:17 · 134 阅读 · 0 评论 -
redis-cluster集群搭建
环境:centos7.6云主机:192.168.1.129192.168.1.128 192.168.1.127软件版本:redis-5.0.8.tar.gz1,在3台同时解压,编译yum -y install gcctar -xf redis-5.0.8.tar.gzcd redis-5.0.8 && make && cd...原创 2020-04-17 19:26:30 · 209 阅读 · 0 评论 -
redis 主从复制
在阿里云买的redis企业集群版在预算范围内达不到并发数的要求社区版是单核,企业版3核,决定自己搭建环境:阿里云centos7.6 主机 :192.168.1.125 192.168.1.126 4核8G一,2台都同时安装redis1,安装gccyum -y install gcc2,解压tar -xf redis-5.0.8.tar.gz...原创 2020-04-16 20:22:22 · 221 阅读 · 0 评论