The environment is lnmp.
The problem is that nginx did Reverse proxy and pointed to a nodejs project. Every time post submits a form 502, refreshing it is normal. What the hell
Find the reason, when pm2 starts, watch the entire directory, the result file changes will restart, and then 502. . . I found nginx configuration for half a day