---
schema_version: "1"
id: 66fa02916962b6693fb11706b613f7ced7bff47634e4768d95e7309da8005aee
title: Tableau Server 閘道處理序
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/server/server_process_gateway.md
canonical_url: https://help.tableau.com/current/server/zh-tw/server_process_gateway.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 79b27e81508ac6b3fa7dc90bc2aec67d2b0dfc51b2b147f3b80b5c1551011c32
description: Understand the Tableau Server Gateway process based on Apache web server.
---
[跳至主要內容](#main-content)

# Tableau Server 閘道處理序

Tableau Server 閘道處理序是一個 Apache Web 伺服器元件 (`httpd.exe`)。它的工作是處理從所有用戶端（Tableau Desktop、移動裝置、 Proxy 或負載平衡器等）傳遞到伺服器的請求。

伺服器執行閘道處理序的單一執行個體；每台電腦上不能執行多個執行個體。在包含 VizQL Server 或 Vizportal 執行個體的所有節點上均需要閘道處理序。

<table style="width: 100%;mc-table-style: url('Resources/TableStyles/Basic-Border.css');" class="TableStyle-Basic-Border" cellspacing="0"><colgroup><col class="TableStyle-Basic-Border-Column-Column1" style="width: 15%;"><col class="TableStyle-Basic-Border-Column-Column1"></colgroup><tbody><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><strong>處理序</strong></td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">閘道</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><strong>狀態</strong></td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">可在 [狀態] 頁面上查看 Gateway的狀態。有關詳情，請參閱<a href="https://help.tableau.com/current/server/zh-tw/service_viewstatus.htm" class="xref">檢視伺服器處理序狀態</a>。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyB-Column1-Body1"><strong>記錄</strong></td><td class="TableStyle-Basic-Border-BodyA-Column1-Body1">閘道處理序組建的記錄位於 <code><code>C:\ProgramData\Tableau\Tableau Server\data\tabsvc\logs\</code>httpd</code> 中。有關詳情，請參閱<a href="https://help.tableau.com/current/server/zh-tw/logs_loc.htm" class="xref">Tableau Server 記錄檔和記錄檔位置</a>。</td></tr></tbody></table>

## Port assignment

預設情況下，閘道處理序在埠 80（對於 HTTP 請求）和 443（對於 SSL 請求）上偵聽請求。在電腦上安裝 Tableau Server 時，會在伺服器設定過程中確保此埠在電腦的防火牆中已開啟。如果電腦正在執行需要 HTTP 埠 80 的不同處理序，您可以在安裝期間變更閘道處理序的埠指派。（您無法變更 SSL/HTTPS 埠。）

![預設閘道連接埠號碼為 80。](/tableau/current/zh-tw/server/zh-tw/Img/config_setup_gw.png)

如果您需要在安裝後設定 HTTP 埠，請執行以下 TSM命令，其中 _node_ 是節點編號（例如 `node1`），而 _nn_ 是新的埠號碼：

tsm topology set-ports --node-name _node_ --port-name gateway:primary --port-value _nn_

如果您將 Tableau Server 與反向 Proxy伺服器一起執行，則需要在 Tableau Server 上設定其他埠和主機相關設定。請參閱[為 Tableau Server 設定 Proxy 與負載平衡器](https://help.tableau.com/current/server/zh-tw/proxy.htm)。

## 閘道處理序的記錄檔案

閘道處理序建立兩群組記錄檔案：

- 活動記錄。這些記錄檔案名稱的格式為 `access._yy_mm_dd_hh_mm_ss_.log.`
- 錯誤記錄。所有錯誤均記錄在一個名為 `error.log` 的檔案中。

有關詳情，請參閱[記錄檔快照（將記錄封存）](https://help.tableau.com/current/server/zh-tw/logs_archive.htm)。

## 叢集中的閘道處理序

如果您的伺服器環境分佈在多台電腦中，您可以在叢集的每個節點上執行單一閘道處理序。在叢集中的多台電腦上執行閘道處理序的最常見方案是叢集前面有負載平衡器。在此方案中，負載平衡器將請求分發到叢集中的任何閘道。如果需要使某個節點離線（例如，以便在該節點上執行維護），您可以停用負載平衡器到該電腦的路由。維護完成時，您可以在負載平衡器上重新啟用該節點。

您必須在叢集中的至少一台電腦上執行閘道處理序。如果從主要伺服器中移除閘道處理序，您必須確保叢集中的另一台電腦正在執行閘道處理序。您還必須確保用戶端可存取該電腦。

在為以下程序或服務之一設定的任何節點上都需要閘道程序的執行個體：VizQL Server、Vizportal 或 Tableau Prep 流程製作。

如果 Tableau Server 設定為使用 SSL，您必須確保用於支援 SSL 的憑證在叢集中執行閘道處理序的每台電腦上位於相同位置中。有關使用 SSL 的詳情，請參閱[針對與來往 Tableau Server 的外部 HTTP 流量設定 SSL](https://help.tableau.com/current/server/zh-tw/ssl_config.htm)。

同樣，如果伺服器安裝使用自訂徽標，該徽標在執行閘道處理序的每台電腦上必須位於相同位置中。

如果需要變更閘道處理序偵聽的埠號（如前所述），您可以為執行閘道處理序的每台工作伺服器電腦使用設定對話方塊或執行以下命令：

tsm topology set-ports --node-name _node_ --port-name gateway:primary --port-value _nn_

## 其他資訊

[為 Tableau Server 設定 Proxy 與負載平衡器](https://help.tableau.com/current/server/zh-tw/proxy.htm)

[新增負載平衡器](https://help.tableau.com/current/server/zh-tw/distrib_lb.htm)