Nginx restart error

Nginx -t verify file ok, but nginx -s reload error: [error] invalid PID number “” in” /run/nginx. PID “, this problem may occur because the path to the nginx configuration file is incorrect. You can run the following command

Nginx -c /ect/nginx/nginx.conf // Reconfigure the configuration directoryCopy the code

If that doesn’t work, you can restart in the bin directory of nginx

./nginx -s reload
Copy the code

413 Request Entity Too large

Conf file, find the HTTP {} section, add client_max_body_size 20m;

The front-end POST request nginx agent will report an error if the parameter size is different

The front-end POST request to the nginx agent will report a 500 error if the parameter size is different

Check the Linux disk space df -h