Web application troubleshooting: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
* [https://docs.nginx.com/nginx/admin-guide/monitoring/logging/ Configuring Logging | NGINX Plus] on {{Win}} & {{Linux}}
* [https://docs.nginx.com/nginx/admin-guide/monitoring/logging/ Configuring Logging | NGINX Plus] on {{Win}} & {{Linux}}
* [https://docs.microsoft.com/zh-tw/windows/win32/http/iis-logging IIS 記錄 - Win32 apps | Microsoft Docs] on {{Win}}
* [https://docs.microsoft.com/zh-tw/windows/win32/http/iis-logging IIS 記錄 - Win32 apps | Microsoft Docs] on {{Win}}
Example command: This command is used to view the last few lines of the Nginx server's error log file.
<pre>
sudo tail /var/log/nginx/error.log
</pre>
* sudo: Execute with administrator privileges
* tail: Display the end portion of a file
* /var/log/nginx/error.log: Default path for Nginx error log file
You can add -f parameter to monitor the log file in real-time:


== OS level ==
== OS level ==
Line 25: Line 36:
{{Template:Troubleshooting}}
{{Template:Troubleshooting}}


[[Category:Programming]]
[[Category: Programming]]
[[Category: Linux]]

Latest revision as of 13:47, 20 January 2025

網站應用程式技術問題排除

Web script level[edit]

Database level[edit]

Web server level[edit]

Example command: This command is used to view the last few lines of the Nginx server's error log file.

sudo tail /var/log/nginx/error.log
  • sudo: Execute with administrator privileges
  • tail: Display the end portion of a file
  • /var/log/nginx/error.log: Default path for Nginx error log file

You can add -f parameter to monitor the log file in real-time:

OS level[edit]

  • Win Os windows.png 系統管理工具 (Administrative Tools) -> 事件檢視器 (Event Viewer)
  • Linux Os linux.png


Troubleshooting of ...

Template