• linux常用的命令

    cat test.txt | sed 's/,/\n/g' #将,换成换行 export https_proxy="192.168.61.219:7890" export http_proxy="http://192.168.61. ...

    2024-06-25
  • 运维实用小脚本,登录即自动显示系统信息

    #!/bin/bash # by Rohin # site:blog.982013.xyz #################################### # 获取IP地址和主机名 IP_ADDR=$(hostname -I | cut -d' ' -f1) H ...

    2024-06-25
  • nginx日志查看

    A:找出nginx日志里访问次数最多的IP,降序排列 cat test-access.log |grep nginx |awk '{print $1}'| sort | uniq -c | sort -nr -k1 | head -n 10 |awk -F ' ' ...

    2020-06-25