redis白名单 引发nginx Post请求499错误的一次案例
前两天给网站增加新服务器,redis,服务器,mysql等都使用的阿里云的服务器。加上后,放开负载均衡,nginx日志却出现大量499状态错误,且均为Post请求:新服务器环境和原服务器一致,原服务器正常。按网上教程,配置文件中加入 …
前两天给网站增加新服务器,redis,服务器,mysql等都使用的阿里云的服务器。加上后,放开负载均衡,nginx日志却出现大量499状态错误,且均为Post请求:新服务器环境和原服务器一致,原服务器正常。按网上教程,配置文件中加入 …
yum -y install git
git clone https://github.com/phpredis/phpredis.git && cd phpredis
whereis phpize
/usr/bin/phpize #以自己的为准
./configure –with-php-config=/usr/local/php/bin/php-confi …
查看docker下redis更新到的版本:
https://hub.docker.com/_/redis?tab=tags
docker pull redis:latest #拉取镜像 docker images #查看镜像
启动镜像:下面是以启动三个redis为例,映射到外网端口分别是637 …
程序执行过程中redis报不能持久化错误。
解决方法:
1.修改配置文件:
vi redis.conf stop-writes-on-bgsave-error no #把后面的yes设为no,如没有可在尾部加入该行
其他优化,可根据情况决定是否执行以下 …
在卸载gitlab然后再次安装执行sudo gitlab-ctl reconfigure的时候往往会出现:ruby_block[supervise_redis_sleep] action run,会一直卡无法往下进行!
解决方案:
1、按住CTRL+C强制结束;
2、运行:sudo systemctl …
最近使用tomcat整合redis来保存session,启动tomcat时报错信息:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisTemplate' defined …
今天 搭建redis sentinel 一直卡在-sdown sentinel ,无法主从自动切换。
配置如下:port 26379
daemonize yes
logfile "/home/redis/logs/sentinel.log"
sentinel announce-ip 192.168.0.201 …
redis启动集群报错:
[ERR] Node 192.168.0.201:7001 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.
以我的3.2.6为例说明下 …
说明:安装和启动redis用户这里我们使用jjzb,请提前建立相关用户,安装路径为/home/jjzb/redis,大家可根据情况修改。
1.编译安装 [root@localhost ~]#yum -y install gcc gcc-c++ libstdc++-devel tcl wget vim …
下面是今日性能测试中遇到的问题,总结如下。
1、 问题
测试某接口时发现redis中的keyspace_misses一直在增加,即未命中数一直增加。
2、解决分析过程
1) 使用dbsize命令查出来的keys数大于keys *统计出来的数,说 …