PM2 日志文件的默认位置是什么? [英] What is the default location of PM2 log files?

查看:79
本文介绍了PM2 日志文件的默认位置是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出 PM2 默认情况下保存日志文件的位置?

I'm trying to find out where PM2 saves the log files by default?

我正在使用 Linux Ubuntu 16.04 服务器,我已经使用 npm i pm2 -g 在全球范围内安装了它.

I'm working with a Linux Ubuntu 16.04 server and I've installed it globally with npm i pm2 -g.

推荐答案

pm2 默认将日志保存到 $HOME/.pm2/logs/XXX-err.log,其中 XXX 是你的 pm2 应用名称

pm2 saves logs to $HOME/.pm2/logs/XXX-err.log by default, where XXX is your pm2 app name

这篇关于PM2 日志文件的默认位置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆