shell 三元表达式实现记录
result=$([ "$isOk" == 1 ] && echo -n "yes" || echo -n "NO")
result=$([ "$isOk" == 1 ] && echo -n "yes" || echo -n "NO")
该选项为 http 指定代理及端口,如果不指定端口,默认为 1080 做一下记录。
血的教训1.容量评估,上限宁可多了也不能少!2.评估需到位,数据佐证不能偷懒!3.周知到位!4.梳理核心检查项!不能摸瞎,心存侥幸,凡是可能出错的地方肯定会出错!
记录根据 binlog 日志文件,解析出指定之间范围的 sql 变更语句其中 binlog_mysqlbin.000010 为 binlog 日志文件mysqlbinlog -v --base64-output=decode-rows binlog_mysqlbin.000010 --start-datetime="2022-10-27 21:25:40" --stop-dat
浏览器访问,通过 F12 浏览器抓包工具就可以进行请求响应包分析,某些复杂场景需分析服务端的网络问题等,这时可能需要在服务器进行抓包,可以用 tcpdump 抓服务器上的出、入数据包,再用 GUI 工具 wireshark 查看数据包情况。一、前置知识TCP 三握、四挥 https://baike.baidu.com/item/%E4%B8%89%E6%AC%A1%E6%8F%A1%E6%89%8
仅做负载均衡 upstream 简单场景记录,更多策略与参数可查阅官方文档http://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstreamnginx.conf 片段upstream example_nginx_lb { server 127.0.0.2:80; server 127.0.0.3:80; } se
一、背景通过压测发现系统瓶颈,评估系统 QPS、吞吐量上限二、工具选择ab、wrk、Jmeterab[root@VM-190-129-centos ~]# ab --help Usage: ab [options] [http[s]://]hostname[:port]/path Options are: -n requests Number of requests to perf
感谢 offodd传送门:https://www.offodd.com/17.html
使用场景变更分支的基节点,使提交历史更线性、优雅。模拟场景与使用步骤步骤1 开发A,开发阶段git checkout -b feature/test1 touch feature_test1 git add . git commit -m 'commit in feature/test1' git push --set-upstream origin feature/test1步骤2 开发B,