wowaili

日志

过滤日志 keyword cat $log_path | grep -n "$keyword" 过滤日志 多个 keyword and/or and 逻辑且 通过管道过滤前一个结果集中的 keyword cat $log_path | grep -n "$keyword" | grep "$key

klaus 发布于 2024-06-06

内网穿透

Frp 内网穿透 frp server [!Note] 重要!!!!! 千万要注意frps中,配置的 ==vhost_http_port== 的值,该值必须对应nginx中 ==proxy_pass== 中的端口 ^7f09c0 # 启动命令 ./frps -c ./frps.ini frp cl

klaus 发布于 2023-05-05

VirtualBox

virtualBox 网络设置 virtualBox 复制虚拟机 virtualBox 命令 # 查看运行的vms VBoxManage list runningvms # 无界面启动 "Centos7" 这台机器 VBoxManage startvm Centos7 --type headless

klaus 发布于 2022-12-23

Junit

springboot 测试类 测试基类配置 @RunWith(SpringRunner.class) @SpringBootTest @WebAppConfiguration @ContextConfiguration(initializers=ConfigFileApplicationContex

klaus 发布于 2022-12-20

AB压测

Apache ab 压测 get 方式 ab -n 500 -c 100 http://47.112.143.31:9002/fsi/s/stat/today -n 表示请求数 -c 表示并发数 [!NOTE] 服务器对应信息 software: 服务器使用的软件(Nginx/Tomcat) hos

klaus 发布于 2022-11-21

FinalShell

FinalShell 常用模版 ## 过滤日志 cat [p#1 log_path] | grep -n -C [p#2 line_num] "[p#3 keyword]" ## 过滤多个关键字(逻辑且) cat [p#1 log_path] | grep -n "[p#2 keyword1]

klaus 发布于 2022-11-09

Homebrew

Homebrew And Homebrew cask Homebrew 安装 # Homebrew 安装 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)

klaus 发布于 2022-11-02