Page 502 misarrangement
Head today give I threw out a problem, let me to solve, the problem is that, in the morning when warehouse access web access, connection timeout, I met before, this kind of situation usually white list didn't add firewall, or failure, basic can have this kind of situation need to restart the firewall, so I find domain name corresponding IP, connected to the server, restart the firewall, the results did not solve the problem, so I will shut down the firewall to access web pages, then page shows a 502 error, check the services on the server, I found that is PHP - FPM hanging off, and restart the pho - FPM, visit the web page again, the page displays the not file found, can't find the file, so I use the corresponding service netstat looked at the port, use ps - ef found service corresponding to the file path, CD to the directory path, I found the corresponding web directory is empty, the documents show nothing, it makes me confused, I think, don't file being killed? (primary brain circuits), I suddenly remind of, this web page have a spare domain, then find the domain name, find the corresponding IP, the login server, see the server's web only corresponds to a domain name, is originally did transfer processing, originally I want to add another server domain name is in this stage, but it can only solve the problem of access to, although I can access the web page, but the pressure of the server will be bigger, if this method will work before, the previous operations would not have to open a server (obviously in order to alleviate the pressure of the server), the scheme forget about it, and then find the reason, I think, now that is a 502 error (and can not find a file), then take a look at what causes! The Internet a lot of data, the results are nothing, and careful thought for a long time, since no corresponding file directory, if it is just give it a corresponding document? Before I find the primary server will file copy to the corresponding directory, the visit, the page fault, said can't find the file in a corresponding PHP script, a little collapse, the result is wrong, so I'll have to find the previous operations, to the information, I put the wrong sent him, and because there are alternate web can be normal visit, so I asked him to do before the web is the Lord, he said to me, may be a PHP interface or problem, let me find under development, and then told me that the two web is done before the NFS Shared, ok, I know the reason, the appearance of the system is back to back to the beginning, because before a file copy of another server), restart all services, wrong not the file to the access time is that this, df -h as you can see, mount the Shared directory, found that using showmount -e Shared services IP view, is indeed a NFS hang up, check the boot from kai, what all have no, I go, I have a bit of your doubts! Share why not do automatically mount, pit dad! I checked the NFS to the master server documents, no problem, then restart the NFS service, to the client to view, have the file, then mount mount Shared directory to the corresponding directory, see again, the web is still wrong, clear the browser cache, to visit again, ok, normal web pages!
Conclusion:
1. See wrong bao should know the situation first, before you ask is how to solve the mistakes, what's it like in service structure, it is very important, or confused about myself, make half a day do not know this error is how to return a responsibility, attentive people might think, early to get in a new company, but just suggest ask more, can save a lot of unnecessary waste of time.
2. Careful, familiar with the service of the cases, the lines are wrong careful, thought to be clear.
3. Suggest some compressive practice, or a nervous, originally very simple things will get half a day.