1.在/root/nginx/logs
目录下,创建 20 个日志文件,从2019-03-01
到2019-03-20
。并且,将系统日期修改为2019-03-20
。
for time in {01..20}; do date -s "201903$time"; touch /root/nginx/logs/access_www_$(date +%F).log ; done
标签:03,01,20,logs,记录,nginx,2019,自动化 From: https://www.cnblogs.com/tdsj/p/17059442.html