我正在使用以下参数创建Windows服务。但是,nssm不会旋转输出文件:
AppRotateFiles 1(enables file rotation)
AppRotateOnline 0
AppRotateSeconds 86400 (time between rotation)
AppRotateBytes 1048576 (file size threshold to rotate the file)
答案 0 :(得分:-1)
未启用在线旋转时,NSSM仅在服务启动时旋转文件。如果您只运行它,它将什么都不做。