Nginx 404 troubleshooting

Lazy, as expected, laziness is the first problem of people and the first motivation of people. I have forgotten how long I haven’t logged in to vps and haven’t maintained my own website. I gave my vps to my friends before. After playing, let me go, will it cause any damage to my vps, is my website okay? I visited my website with anxiety.

Oh my god, there really is a problem, my kanban girl, my notes, my snowflakes, do you know how much time and effort I spent on beautifying the website.

Let’s troubleshoot now,

404: The file cannot be found

Troubleshooting: The file name is correct, the file path is correct, the configuration file is viewed, and the default website path is not changed and correct

Find the error log

find / -name error.log

 Download the log to the machine for analysis

 sz /var/log/nginx/error.log   

Find the log that you just accessed and reported the error and copy it

2302#2302: *4275 connect() failed (111: Connection refused) while connecting to upstream, client: 22

 Next is the most critical step to solve this problem, everyone pay attention

Copy to Baidu for search

Through Baidu, it is found that php-fpm is not running

But the method of running php-fpm given by Baidu above cannot be used on my vps, what should I do?

Use the find command to find

Then try one by one

I finally found /usr/sbin/php-fpm to start php-fpm, and I started it once in the above picture.

This problem is finally solved, do you think my website is back to normal?

No, I underestimated the destructive ability of my friends. They lost the database of my website. . . . .

It seems that the small goal I set before, the goal of writing a blog website in PHP, is on the agenda.

 

 

Guess you like

Origin blog.csdn.net/qq_32393893/article/details/108094595