# checkwebsite **Repository Path**: bushaoxun/checkwebsite ## Basic Information - **Project Name**: checkwebsite - **Description**: 用于检测website目录的文件是否被改动过,如有改动,则发送邮件给web管理员。 - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-07-27 - **Last Updated**: 2021-01-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # checkwebsite 用于检测website目录的文件是否被改动过,如有改动,则发送邮件给web管理员。 **使用方法:** 1 给文件可执行权限: ``` chmod a+x checkweb.sh init.sh ln -s checkweb.sh(绝对路径) /usr/sbin/checkweb ``` 2 ./init.sh 网站根目录 ` 例如:./init.sh /var/www/html` 3.设置任务计划,定期执行检测脚本 例如:每天早上3:00执行一次检测任务 `* 3 * * * /usr/sbin/checkweb /var/www/html`