1. 首页
  2. 数据库
  3. 其它
  4. shell 服务的监控脚本

shell 服务的监控脚本

上传者: 2021-01-09 07:31:15上传 PDF文件 46KB 热度 33次
监控数据库的shell脚本经典案例 安装mysql,和开启mysql服务 yum install mariadb-server -y systemctl start mariadb firewall-cmd --add-service=mysql 123 1. 检测端口命令 方法一 [root@localhost sbin]# netstat -antlpe|grep 3306|awk -F [ :]+ '{print $5}' 3306 [root@localhost sbin]# ss -antlpe | grep mysql |wc -l 1 1234 方法二:lsof [root@
用户评论