====== 您 Instance 的管理頁面 ======
===== 使用您的管理頁面 =====
您可以透過 Gandi 網站中 Instance 的控制面板來使用管理介面或是直接跳到連結: ''xxxxxx.admin.dc0.gpaas.net''( xxxxxx 請取代為實際的唯一 instance 號碼 )。
您將會看到帳號(帳號一樣是數字),與密碼,是您在建立 Instance 時設定的。
您將會看到如下截圖類似的畫面:
{{ en:simple:instance-admin.gif }}
您可以依照您的需求來修改。想知道如何客製化您的需求,請到 [[zh-tw:simple:administration_of_your_instance:customize|這裡]].
===== 可用的訊息 =====
==== 查看日誌檔(Log) ====
您可以查看日誌紀錄檔來確認您網站中發生的錯誤。
可查閱的日誌檔有:
=== Apache 日誌檔: ===
* error.log: 包含了 Apache 伺服器的相關錯誤。建議定期檢查這些日誌以發現可能的設定錯誤問題( ".htaccess" 中錯誤的指向, 遺失首頁檔等等)。
=== PHP 日誌檔: ===
* "admin-error.log": PHP 在管理資源中執行的錯誤訊息。
* "fpm.log": 相關的 PHP 日誌。如果 PHP 多執行緒的數量超過最大限制,會被紀錄在這個日誌檔。
* ''www-error.log'':PHP 在公開資源中執行的訊息。
=== MySQL (Database) 日誌檔: ===
* ''error.log'': MySQL 伺服器的相關日誌檔。您可以看到那一個資料表損壞並且已修復。
* ''slow-queries.log'': 您可以在這邊看到執行時間過長的紀錄。您可以從此得知哪些資料表被長時間鎖定。
==== 了解日誌檔 ====
日誌檔時間會使用預設值。
=== Apache 日誌檔 ===
[Thu Jun 14 12:08:45.199853 2012] [mpm_event:notice] [pid 186:tid 3557842618176] AH00489: Apache/2.4.1 (Unix) configured -- resuming normal operations
[Thu Jun 14 12:08:45.199869 2012] [core:notice] [pid 186:tid 3557842618176] AH00094: Command line: '/usr/sbin/apache2 -d /srv/data/.config/apache -f /srv/data/.config/apache/apache2.conf -D lamp0-1'
[Thu Jun 14 15:08:45.213486 2012] [mpm_event:notice] [pid 186:tid
這些日誌檔說明了網頁伺服器曾經被重新啟動過。
=== PHP 日誌檔 ===
^ ''[08-Jun-2012 12:56:29] WARNING: [pool www] server reached max_children setting (x), consider raising it'' |
當 PHP-FPM 已經達到 PHP 多執行緒的最大數量,則會出現此警告。最大數量的多執行緒限制在每一個 Instance 的條約中(規格 S: 2, 規格 M: 4, 規格 L: 8 ...)。如果這個錯誤常常發生,您應該要考慮增加您 Simple Hosting 的規格。[pool www] 表示執行在您 Instance 的公開資源,[pool admin] 則是管理資源。
^ ''[05-Jun-2012 09:08:36] WARNING: [pool admin] 'user' directive is ignored when FPM is not running as root'' |
這個訊息不是錯誤並且可以忽略。
=== MySQL logs ===
120614 16:09:59 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.6
120614 16:09:59 InnoDB: Initializing buffer pool, size = 8.0M
120614 16:09:59 InnoDB: Completed initialization of buffer pool
120614 16:09:59 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
120614 16:09:59 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
120614 16:10:00 InnoDB Plugin 1.0.17 started; log sequence number 2657932
120614 16:10:00 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.61-2' socket: '/srv/run/mysqld/mysqld.sock' port: 0 (Debian)
表示 MySQL 已經被重開。
120614 16:04:45 [ERROR] /usr/sbin/mysqld: Table './wp/wp_comments' is marked as crashed and should be repaired
120614 16:04:45 [Warning] Checking table: './wp/wp_comments'
120614 16:04:45 [ERROR] /usr/sbin/mysqld: Table './wp/wp_links' is marked as crashed and should be repaired
120614 16:04:45 [Warning] Checking table: './wp/wp_links'
120614 16:04:45 [ERROR] /usr/sbin/mysqld: Table './wp/wp_options' is marked as crashed and should be repaired
120614 16:04:45 [Warning] Checking table: './wp/wp_options'
在 MySQL 啟動期間,資料表已經被檢查完畢; 如果資料表有損毀,MySQL 會自動嘗試修復它。