Editing
Web application troubleshooting
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
網站應用程式技術問題排除 == Web script level == * Understanding the meaning of critical HTTP status codes 4xx, 5xx [[Troubleshooting of HTTP errors]] * Javascript * Backend script == Database level == * 確認資料庫連線有建立? * 確認資料庫 SQL 查詢語法是否正確?或者逾時? [https://dev.mysql.com/doc/refman/5.7/en/error-log.html MySQL :: MySQL 5.7 Reference Manual :: 5.4.2 The Error Log] == Web server level == * [https://httpd.apache.org/docs/2.4/logs.html Log Files - Apache HTTP Server Version 2.4] 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}} 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 == * {{Win}} 系統管理工具 (Administrative Tools) -> 事件檢視器 (Event Viewer) * {{Linux}} {{Template:Troubleshooting}} [[Category: Programming]] [[Category: Linux]]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Linux
(
edit
)
Template:Troubleshooting
(
edit
)
Template:Win
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information