nginx日誌定時清理

建立清理腳本nginx 一、在nginx的日誌目錄(nginx日誌目錄爲: /usr/local/nginx/logs/)建立清理日誌的shell腳本: vi nginx_log_cpdel.shshell 二、nginx_log_cpdel.sh的內容以下:日誌 三、新建定時任務: crontab –e 四、輸入i後進入編輯模式 1 0 * * * /bin/sh /usr/local/ngin
相關文章
相關標籤/搜索