---
schema_version: "1"
id: fb2017d30c387e4f549516ecef50ee0e9c6e3dcf096ca321034fe6cfd4e63012
title: Tableau Server 网关进程
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/server_process_gateway.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/server_process_gateway.htm
source_site: help.tableau.com
content_type: documentation
content_hash: fe8b99860d793b10243d9784e1f029f69817956d8f6d5f951ecbfe2cb464756a
description: Understand the Tableau Server Gateway process based on Apache web server.
---
[跳转到主要内容](#main-content)

# Tableau Server 网关进程

Tableau Server 网关进程是一个 Apache Web 服务器组件 (`httpd.exe`)。它的任务是处理从所有客户端（Tableau Desktop、移动设备、代理或负载平衡器等）传递到服务器的请求。

服务器运行网关进程的单一实例；每台计算机上不能运行多个实例。网关进程在包含 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-linux/zh-cn/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>/var/opt/tableau/tableau_server/data/tabsvc/logs/</code>httpd</code> 中。有关详细信息，请参见<a href="https://help.tableau.com/current/server-linux/zh-cn/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-cn/server-linux/zh-cn/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，您将需要在 Tableau Server 上配置其他端口和主机相关设置。请参见[为 Tableau Server 配置代理和负载平衡器](https://help.tableau.com/current/server-linux/zh-cn/proxy.htm)。

## 网关进程的日志文件

网关进程创建两组日志文件：

- 活动日志。这些日志文件名称的格式为 `access._yy_mm_dd_hh_mm_ss_.log.`
- 错误日志。所有错误均记录在一个名为 `error.log` 的文件中。

有关详细信息，请参见[日志文件快照（将日志存档）](https://help.tableau.com/current/server-linux/zh-cn/logs_archive.htm)。

## 群集中的网关进程

如果您的服务器环境分布在多台计算机中，您可以在群集的每个节点上运行单一网关进程。在群集中的多台计算机上运行网关进程的最常见方案是群集前面有负载平衡器。在此方案中，负载平衡器将请求分发到群集中的任何网关。如果需要使某个节点脱机（例如，以便在该节点上执行维护），您可以禁用负载平衡器到该计算机的路由。维护完成时，您可以在负载平衡器上重新启用该节点。

您必须在群集中的至少一台计算机上运行网关进程。如果从主服务器中移除网关进程，您必须确保群集中的另一台计算机正在运行网关进程。您还必须确保客户端可访问该计算机。

在为以下进程或服务之一配置的任何节点上都需要网关进程的实例：VizQL Server、Vizportal 或 Tableau Prep Flow Authoring。

如果 Tableau Server 配置为使用 SSL，您必须确保用于支持 SSL 的证书在群集中运行网关进程的每台计算机上位于相同位置中。有关使用 SSL 的详细信息，请参见[针对与来往 Tableau Server 的外部 HTTP 流量配置 SSL](https://help.tableau.com/current/server-linux/zh-cn/ssl_config.htm)。

同样，如果服务器安装使用自定义徽标，该徽标在运行网关进程的每台计算机上必须位于相同位置中。

如果需要更改网关进程侦听的端口号（如前所述），您可以为运行网关进程的每台工作服务器计算机使用配置对话框或运行以下命令：

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

## 其他信息

[为 Tableau Server 配置代理和负载平衡器](https://help.tableau.com/current/server-linux/zh-cn/proxy.htm)

[添加负载平衡器](https://help.tableau.com/current/server-linux/zh-cn/distrib_lb.htm)