#!/usr/bin/env bash INDEX_HTML=/var/www/log/index.html mkdir -p /var/www/log/ echo '
' > ${INDEX_HTML}
top -b | head -6 >> ${INDEX_HTML}
vnstat -u
vnstat -m >> ${INDEX_HTML}
vnstat -d >> ${INDEX_HTML}
vnstat -h >> ${INDEX_HTML}
######################################
# crontab -e 修改定时任务, 添加两行
# # netlog.sh https://github.com/hongwenjun/vps_setup/blob/master/netlog.sh
# 8 * * * * wget -qO- git.io/fxxlb | bash
######################################