如何查看和管理網站日誌 How to view and manage a website's logs (Plesk)
您可能想下載這些日誌檔到您的電腦,由統計程式進行處理,或查看其內容的伺服器調試目的。
You may want to download these log files to your computer for processing by third-party statistics programs, or view their contents for web server debugging purposes.
1) 轉到網站及域名。
Go to Websites & Domains.
2) 按一下日誌。
Click Logs.
3) 按一下相應的檢視連結。
Click the corresponding View link.
4) 如果您想要查看檔案的最後幾行,輸入的號碼在這裡,然後選擇一個日誌檔。
If you want to view only the last few lines of a file, enter the number here, then select a log file.
在這裡我們看到的"access_log"檔中的最後 10 行。
And here we see the last 10 lines from the access_log file.
5) 若要防止日誌檔增長得過大,您應該啟用自動清理和回收。您可以使用日誌迴圈執行此操作。
To prevent log files from growing too large, you should enable automatic cleanup and recycling. You can do this using Log Rotation.
6) 按大小或時間設置。
Set the rotation to occur by size or time.
7) 設置日誌檔的最大數目。
Set the maximum number of log files.
8) 輸入電子郵件地址以接收日誌檔。
Enter an e-mail address to receive processed log files.
9) 要下載一個日誌檔,請按一下磁片圖示。
To download a log file, click the disk icon.