The root cause is that the machine restarts or the service restarts, or the machine has been installed with nginx multiple times, causing nginx to find the default file /var/run/nginx.pid. In fact, this file disappeared in a tossing meal, and you need to re-specify the nginx running configuration file
sudo nginx -c /etc/nginx/nginx.conf
nginx -s reload