Nginx的错误和访问日志-管理#9车辆定位系统

English 英国(更改)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

万一你不知道他们生活

nginx的错误日志图片

让我们看一看我们的Nginx的服务器和站点访问日志中的错误和快速查找,并在哪里可以找到他们。

你有一对的Nginx的日志服务器范围的,另一个为每个站点,除非你忽略他们。 错误日志做到这一点,记录任何错误。 访问日志显示什么网页内容已经解决,通过IP地址和时间。

其次,这些谁用虚拟发球多个网站和博客主机制订出了每个站点的日志位置或博客虚拟主机文件,或者,如果你在你的nginx.conf捆绑文件每个站点的配置,对文件的位置给出那里。

这里提醒无论如何。

成立了(4新成员)..非托管车辆定位系统 圣经的车辆定位系统

在20个复制/粘贴操作.. 从零到英雄,空白方块可爱的Linux服务器。

向下的全系列指数。

所以,嘿,下跌共享与虚拟万岁!希望有所帮助。the_guv

Nginx的Web服务器错误和访问日志的位置

它们都列出来: -

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

Web Site Error & Access Log Locations

sudo nano /home/public_html/someSite.com/log/access.log

And the error page:-

sudo nano /home/public_html/someSite.com/log/error.log

My Error or Access Log is a Blank File/Won't Open.

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.


SETUP an Unmanaged VPS (4 Newbies) .. The V-P-S Bible

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

  1. * Includes video tutorial.

  2. Not linked = not published. Won't be long. Fix a feed for updates.


If you liked that ...
... maybe you'll like these?

.