journalctl -u your-springboot-service -f
journalctl -u your-springboot-service -n 100

# 查看今天的日志

journalctl -u your-springboot-service --since today

# 查看昨天18点到今天8点的日志

journalctl -u your-springboot-service --since "yesterday 18:00" --until "08:00"

# 只保留最近 7 天的日志

journalctl --vacuum-time=7d

# 限制日志总容量不超过 5GB

journalctl --vacuum-size=5G

# 只保留最近 1000 个日志文件（内部文件，非用户可见）

journalctl --vacuum-files=1000

/home/njzscloud/greenfrog
/home/njzscloud/greenfrog/html
/home/njzscloud/localizer
systemctl start localizer
systemctl stop localizer
systemctl start greenfrog
systemctl stop greenfrog
systemctl daemon-reload
