Use apache's rotatelogs command to implement the nohup log rollback of the WebLogic startup command
- 2020-05-06 12:09:56
- OfStack
Write a daily journal:
Write a log every 200M:
Write a log every 200M by the time and date command name:
nohup ./startWebLogic.sh | /apache/bin/rotatelogs ./logs/nohuplog 86400 &
Write a log every 200M:
nohup ./startWebLogic.sh | /apache/bin/rotatelogs ./logs/nohuplog 200M &
Write a log every 200M by the time and date command name:
nohup ./startWebLogic.sh | /apache/bin/rotatelogs ./logs/nohup_%Y%m%d%H%M.log 200M &