上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 33 下一页
摘要: 1.写入、替换配置文件shell # 替换node114:~/test # sed -i "/redis.addr/s/.*/redis.addr=127.0.0.1/" ./sed-test # 插入最后一行 node114:~/test # echo "redis.target=66" >> s 阅读全文
posted @ 2022-05-12 16:42 官萧何 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 可以直接使用低版本automake运行一下命令 echo "预处理automake问题" cd ${keepaliveFolder} aclocal autoconf automake --add-missing echo "预处理automake问题 完成" 阅读全文
posted @ 2022-05-09 17:05 官萧何 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 1.nginx的下载编译安装这里略过(各种依赖问题自己解决) 2.下载Nginx一致性hash模块 地址:https://github.com/replay/ngx_http_consistent_hash 下载完成后上传到linux服务器 3.重新编译nginx(.configure),例如: . 阅读全文
posted @ 2022-05-06 09:59 官萧何 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: 配置示例 upstream tomcatserver{ server ip:8780 max_fails=2 fail_timeout=30s; server ip:8068 max_fails=2 fail_timeout=30s backup; } location /usercenter { 阅读全文
posted @ 2022-04-29 10:02 官萧何 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 在上一篇文章redis主从实现的情况下实现哨兵 故障 master自动切换 redis服务器配置: master 192.168.51.65 slave 192.168.51.67 1、master创建sentinel.conf配置文件 port 26379protected-mode nodaem 阅读全文
posted @ 2022-04-28 17:57 官萧何 阅读(154) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 33 下一页