互联网医院监管定时上报的配置
宝塔里面,进入计划任务页面点击添加任务,填写时间
参考内容
wget -q --timeout=30 --tries=3 "你的监管上报地址"
echo "Request started at $(date)" >> /www/wwwroot/你的网站目录/data/logs/log_$(date +%F).log
curl -s "你的监管上报地址" >> /www/wwwroot/你的网站目录/data/logs/log_$(date +%F).log 2>&1
echo "Request finished at $(date)" >> /www/wwwroot/你的网站目录/data/logs/log_$(date +%F).log
页:
[1]