摘要:
1.写入、替换配置文件shell # 替换node114:~/test # sed -i "/redis.addr/s/.*/redis.addr=127.0.0.1/" ./sed-test # 插入最后一行 node114:~/test # echo "redis.target=66" >> s 阅读全文
摘要:
可以直接使用低版本automake运行一下命令 echo "预处理automake问题" cd ${keepaliveFolder} aclocal autoconf automake --add-missing echo "预处理automake问题 完成" 阅读全文
摘要:
1.nginx的下载编译安装这里略过(各种依赖问题自己解决) 2.下载Nginx一致性hash模块 地址:https://github.com/replay/ngx_http_consistent_hash 下载完成后上传到linux服务器 3.重新编译nginx(.configure),例如: . 阅读全文
摘要:
配置示例 upstream tomcatserver{ server ip:8780 max_fails=2 fail_timeout=30s; server ip:8068 max_fails=2 fail_timeout=30s backup; } location /usercenter { 阅读全文
摘要:
在上一篇文章redis主从实现的情况下实现哨兵 故障 master自动切换 redis服务器配置: master 192.168.51.65 slave 192.168.51.67 1、master创建sentinel.conf配置文件 port 26379protected-mode nodaem 阅读全文