Skip to content

安装脚本建议自动配置 nodeget-server / nodeget-agent 日志轮转,避免 app.log 无限增长 #143

@Ryanisgood

Description

@Ryanisgood

使用官方安装脚本安装 NodeGet Server后

bash <(curl -sL https://install.nodeget.com) install-server

安装后 systemd 服务会把日志直接追加到文件:

StandardOutput=append:/var/log/nodeget-server/app.log
StandardError=append:/var/log/nodeget-server/error.log

但安装脚本似乎没有安装或配置 logrotate,也没有为 /var/log/nodeget-server/.log 和 /var/log/nodeget-agent/.log 创建轮转规则。

在高频任务场景下,/var/log/nodeget-server/app.log 会持续增长。我这边实际遇到过 使用大概半个月app.log 增长到 3.6GB,占用了大量磁盘空间。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions