摘要:
#!/bin/bash# 或者这样来写$(date +%F)day=$(date +%Y_%m_%d)size=$(du -sh /var/lib/mysql)echo "Date:$day" >> /tmp/dbinfo.txtecho "DataSize:$size" >> /tmp/dbinf... 阅读全文
摘要:
#!/bin/bashhttp=$(netstat -tunpl | awk '{printf $4 "\n"}' | grep '80$')if [ -z "$http" ]then echo "http doing run" /etc/init.d/httpd startelse ... 阅读全文