În limba engleză (schimbã) 
Să aruncăm o privire la serverul nostru de nginx şi de eroare site-ul & jurnal de acces, precum şi în cazul în care să le găsească.
Ai o pereche de nginx jurnale de server-largă şi un altul pentru fiecare site, dacă nu le-a omis. Jurnalele de eroare face acest lucru doar, log orice erori. Jurnal de acces arată ce elemente de web au fost rezolvate prin adresa IP şi când.
Cei care au urmat Serve multe site-uri / bloguri cu Virtual Hosts trasat locul de buşteni în fiecare site sau blog-uri de fişiere virtuale gazdă sau, dacă aţi pachet de configurare pentru fiecare site-ului în fişierul dvs. nginx.conf, locaţii la fişierele sunt date acolo.
Iată un memento oricum.
În 20 de copy / paste paşi .. de la zero la erou, caseta de gol pentru a-cute ca server Linux.
Derulaţi în jos pentru indicele seria completă.
Deci, hei, vărsat la comun si Viva virtual! Hope it helps. The_guv
Pentru a lista acestora: --
ls -l /usr/local/nginx/logs
Or to open them:-
sudo nano /usr/local/nginx/logs/error.log
.. substituting error.log for access.log as appropriate.
Or if you installed Nginx using the package manager, rather than compiling from source as is recommended in the VPS Bible, they're here:-
sudo nano /etc/nginx/logs
sudo nano /home/public_html/someSite.com/log/access.log
And the error page:-
sudo nano /home/public_html/someSite.com/log/error.log
In the case of the error log, hopefully it is indeed empty. With the access log, maybe it's just too darn big and is taking a long time to open. If you really want to look at it, be patient. Else delete it and add a new, empty one:-
sudo rm /home/public_html/someSite.com/log/access.log && sudo nano /home/public_html/someSite.com/log/access.log
.. saving the empty file.
Serve multi sites & blogs on a budget .. at the fastest possible speed .. with the least downtime .. in the most secure environment .. and future-proofed for easy admin.
That's what the VPS Bible is about, stepped out in simple copy & paste guides.
From high traffic WordPress blogs to startup web hosts, here's what you need.
Set it up? Click here for the 21 part follow-up .. V-P-S Admin
Moses January 19th, 2010 at 3:07 am
G'Day Guv,
A nice alternative to clearing the access log is
sudo rm /home/public_html/someSite.com/log/access.log && sudo touch /home/public_html/someSite.com/log/access.log
I have this as part of my daily backup script, the access.log was approaching 1GB after a few weeks which was accounting for more than 50% of my backup!
the_guv January 20th, 2010 at 8:02 pm
cheers Moses .. that's a nice tip, appreciated.