Linux ????????????????
?????cooffeelis ???????[ 2017/5/27 10:56:13 ] ?????????????? Linux
????????root??crontab???????0????е?????
????wwwadm@host:/etc/logrotate.d$ sudo crontab -l -u root
????0 0 * * * /usr/sbin/logrotate /etc/logrotate.d/web_roteate -fv >/tmp/logro.log 2>&1
???????logrotate???и???????weekly??????и????????????и??????????У????????????????????????и???????????????crontab??????и?????????/etc/cron.daily/??????и??????????и???????????????????????и???????
????logrotate???????
????compress ???gzip ?????????????
????nocompress ????gzip???????
????create mode owner group ?????????????????????????create 0777 nobody nobody
????nocreate ???????μ???????
????delaycompress ??compress ????????????????????????????????????
????nodelaycompress ???? delaycompress ?????????????
????missingok ????????????????????????????????
????ifempty ????????????????????????????logrotate??????
????notifempty ???????????????????????
????mail address ???????????????????????E-mail ???
????olddir directory ?????????????????????????????????????????????????
????noolddir ??????????????????????????????????
????sharedscripts ????postrotate??????????????????????????????????ν????????????????????????????????????????ν??
????prerotate ??logrotate??????????е?????????????????????????????????????
????postrotate ??logrotate???????????е??????????????? (kill -HUP) ??????????????????
????daily ??????????????
????weekly ??????????????
????monthly ??????????????
????rotate count ????????????????????????0 ???б????5 ?????5 ??????
????dateext ????????????????????
????dateformat .%s ???dateext?????????????г????????????и?????????????????dateext???????? %Y %m %d %s ?????????
????size(??minsize) log-size ??????????????????С????????log-size?????bytes(??)??KB (sizek)??MB(sizem).
???????????? >= log-size ?????????? ?????????????????????????λ??Сд????????
????size = 5 ?? size 5 ??>= 5 ??????????
????size = 100k ?? size 100k
????size = 100M ?? size 100M
?????????????????????copytruncate
????copytruncate ?????????????????????????????log?????????????????log.1???????? ?????????μ?????? ??????????????????????????????????????????С?0???????
??????????????????????nginx ???????????д????????copytruncate??????и??????? ??????log->log.1 ????????????log???????nginx ?????????????????log.1????????????nginx ???????????????????????????log.1д?????????????????????????? ??????????и??????nginx ????????μ?log ???д?????????????log.1???
???????????????????
????1?????????nginx ?и???????????postrotate????д?????
????postrotate # ??logrotate???????????е??????????????? (kill -HUP) ??????????????????
????[ -s /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
????endscript
???????????????nginx ????nginx ?????????????????????′??μ???????????????д?????
????2?????copytruncate?????????????????????????????????????log ??????? ???log.1????????log??????????С?0??????log??????????log????????nginx?????????????????????????????????????????????д??????????÷???????nginx
????copytruncate??????????????? ???????????????????????????????????????
????nocopytruncate ???????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Linux??????DDR????????????Linux?????????????????豸??????????linux???в???????????м??????????????????????????Linux????Linux??DNS????????????γ???????????Linux?????????????Linux????(???)????????????????????????Windows???У?Linux???????Linux????????????????Linux iommu??vfio???????Linux????ε???TCP???????Linux?????????????СLinux?·???????????Linux???Jexus?й?Asp.Net Core??ó???Linux?????????Щ??Linux??Cat???????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????