From b2290db274a7a0fa0951df9aea9b514f558f945f Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Fri, 4 Apr 2025 09:15:32 +0800 Subject: [PATCH] feat: update readme --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 44c2d36..81902d6 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,14 @@ Run as daemon: rotate-put --file test-fifo --daemon --iden test [--continue-read] ``` +For nginx: + +```shell +mkfifo access.log +mkfifo error.log +``` + +```shell +./rotate-puts --daemon --file access.log --prefix nginx_access --continue-read --ident nginx_access +./rotate-puts --daemon --file error.log --prefix nginx_error --continue-read --ident nginx_error +``` \ No newline at end of file