Linux Nginx服務器 日誌切割

日誌切割 日誌切割的原因:因爲nginx的access.log日誌會保存所有客戶端連接信息,普通網站每天請求量很大,所以要每天切割(/usr/local/nginx/sbin/nginx -s reopen) 1 手動切割日誌 1、查看日誌的大小:du -sh /usr/local/nginx/logs/access.log 2、在真機多次請求頁面 ab -c 1 -n 100000 http:/
相關文章
相關標籤/搜索