简体   繁体   中英

How to view nodejs express console.logs running on nginx web server

Is it possible to view the console.logs from an express server running on nginx web server?

If so how/where would these files be located?

I've looked in /var/log/nginx at the assess.log and error.log files but those seem to be different.

It's currently impossible to debug a 502 Bad Gateway error on my web api

To anyone else spending way to long finding an answer to this question because you too are ignorant.

If you are running nginx web server with a pm2 process manager the answer is

~/.mp2/logs

You're welcome

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM