access.log和error.log太大,使用命令行来清空

进入nginx的logs目录, 使用git bash,输入命令:truncate -s 0 access.log   truncate -s 0 error.log

posted @ 2022-01-11 15:20  郭康勋kawhi  阅读(636)  评论(0编辑  收藏  举报