Changes between Initial Version and Version 1 of jazz/18-06-08
- Timestamp:
- Jul 17, 2018, 10:52:02 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/18-06-08
v1 v1 1 = 2018-06-08 = 2 3 == pm2 == 4 5 {{{ 6 7 pm2 list all 8 pm2 status 9 10 pm2 logs 11 12 npm install pm2-logrotate 13 pm2 set pm2-logrotate:retain 20 14 pm2 set pm2-logrotate:compress true 15 pm2 get 16 17 pm2 startup 18 pm2 unstartup 19 }}} 20 21 22 == truncate == 23 24 * 有時候某些系統的 log 檔沒設定好 logroate 造成單檔 > 10GB 以上,此時可以靠 truncate 指令來縮小檔案大小 25 {{{ 26 truncate -s 0 ${LOG_FILE_NAME} 27 }}}