[root@www zabbix_scripts]# cat check_httpd.sh 
#!/bin/bash
a=`lsof -i:80 | wc -l`
if [ "$a" -gt "0" ];then
    echo "0"
else
    echo "1" 
fi

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2021-11-29
  • 2021-11-15
  • 2022-02-26
  • 2021-11-28
  • 2021-06-28
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案