运维
进程 标签描述

shellscript-11-进程端口监控服务 脚本内容 !/bin/bash author:yolo 系统服务巡检脚本 要求脚本输出内容告知服务是否正常运行 1mysql3306 2redis6379 3进程是否存在psaux|grep'xxx' 4端口是否存在ss-lnp|grep'xxx' 判断pgrepss命令是否存在 check_tools() { if!whichpgrep&>/dev/null then echo"没有pgrep命令" exit1 fi if!whichss&>/dev/null then echo“没有s...

  UReG4QD8JsyE   2023年11月26日   21   0   0 进程端口监控服务