> For the complete documentation index, see [llms.txt](https://docs.postgresql.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.postgresql.tw/19/server-administration/runtime.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 第 18 章 伺服器設定與操作

### 第 18 章 伺服器設定與操作

**目錄**

* [18.1. PostgreSQL 使用者帳號](https://docs.postgresql.tw/19/server-administration/runtime/postgres-user.md)
* [18.2. 建立資料庫叢集](https://docs.postgresql.tw/19/server-administration/runtime/creating-cluster.md)
  * [18.2.1. 次要檔案系統的使用](https://docs.postgresql.tw/19/server-administration/runtime/creating-cluster.md#creating-cluster-mount-points)
  * [18.2.2. 檔案系統](https://docs.postgresql.tw/19/server-administration/runtime/creating-cluster.md#creating-cluster-filesystem)
* [18.3. 啟動資料庫伺服器](https://docs.postgresql.tw/19/server-administration/runtime/server-start.md)
  * [18.3.1. 伺服器啟動失敗](https://docs.postgresql.tw/19/server-administration/runtime/server-start.md#server-start-failures)
  * [18.3.2. 用戶端連線問題](https://docs.postgresql.tw/19/server-administration/runtime/server-start.md#client-connection-problems)
* [18.4. 管理核心資源](https://docs.postgresql.tw/19/server-administration/runtime/kernel-resources.md)
  * [18.4.1. 共享記憶體與號誌（Semaphore）](https://docs.postgresql.tw/19/server-administration/runtime/kernel-resources/sysvipc.md#sysvipc)
  * [18.4.2. systemd RemoveIPC](https://docs.postgresql.tw/19/server-administration/runtime/kernel-resources.md#systemd-removeipc)
  * [18.4.3. 資源限制](https://docs.postgresql.tw/19/server-administration/runtime/kernel-resources.md#kernel-resources-limits)
  * [18.4.4. Linux 記憶體超額分配（Overcommit）](https://docs.postgresql.tw/19/server-administration/runtime/kernel-resources.md#linux-memory-overcommit)
  * [18.4.5. Linux 大頁（Huge Pages）](https://docs.postgresql.tw/19/server-administration/runtime/kernel-resources.md#linux-huge-pages)
* [18.5. 關閉伺服器](https://docs.postgresql.tw/19/server-administration/runtime/server-shutdown.md)
* [18.6. 升級 PostgreSQL 叢集](https://docs.postgresql.tw/19/server-administration/runtime/upgrading.md)
  * [18.6.1. 透過 pg\_dumpall 升級資料](https://docs.postgresql.tw/19/server-administration/runtime/upgrading.md#upgrading-via-pgdumpall)
  * [18.6.2. 透過 pg\_upgrade 升級資料](https://docs.postgresql.tw/19/server-administration/runtime/upgrading.md#upgrading-via-pg-upgrade)
  * [18.6.3. 透過複寫升級資料](https://docs.postgresql.tw/19/server-administration/runtime/upgrading.md#upgrading-via-replication)
* [18.7. 防止伺服器被偽造（Spoofing）](https://docs.postgresql.tw/19/server-administration/runtime/preventing-server-spoofing.md)
* [18.8. 加密選項](https://docs.postgresql.tw/19/server-administration/runtime/encryption-options.md)
* [18.9. 使用 SSL 的安全 TCP/IP 連線](https://docs.postgresql.tw/19/server-administration/runtime/ssl-tcp.md)
  * [18.9.1. 基本設定](https://docs.postgresql.tw/19/server-administration/runtime/ssl-tcp.md#ssl-setup)
  * [18.9.2. OpenSSL 組態設定](https://docs.postgresql.tw/19/server-administration/runtime/ssl-tcp.md#ssl-openssl-config)
  * [18.9.3. 使用用戶端憑證](https://docs.postgresql.tw/19/server-administration/runtime/ssl-tcp.md#ssl-client-certificates)
  * [18.9.4. SSL 伺服器檔案的使用](https://docs.postgresql.tw/19/server-administration/runtime/ssl-tcp/ssl-server-files.md#ssl-server-files)
  * [18.9.5. 建立憑證](https://docs.postgresql.tw/19/server-administration/runtime/ssl-tcp.md#ssl-certificate-creation)
* [18.10. 使用 GSSAPI 加密的安全 TCP/IP 連線](https://docs.postgresql.tw/19/server-administration/runtime/gssapi-enc.md)
  * [18.10.1. 基本設定](https://docs.postgresql.tw/19/server-administration/runtime/gssapi-enc.md#gssapi-setup)
* [18.11. 使用 SSH 通道的安全 TCP/IP 連線](https://docs.postgresql.tw/19/server-administration/runtime/ssh-tunnels.md)
* [18.12. 在 Windows 註冊事件日誌](https://docs.postgresql.tw/19/server-administration/runtime/event-log-registration.md)

本章討論如何設定並執行資料庫伺服器， 以及它與作業系統之間的互動方式。

本章中的指示，假設您使用的是不含任何額外基礎架構的 純 PostgreSQL，例如依照前幾章的說明， 自原始碼自行建置出來的版本。 若您使用的是預先封裝、或由廠商提供的 PostgreSQL 版本， 封裝提供者很可能已依照您系統的慣例， 針對安裝與啟動資料庫伺服器，做了特別的處理。 詳情請參閱套件層級的相關文件。

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/runtime.html)（原文版本：18.6；核對日期：2026-09-22）


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.postgresql.tw/19/server-administration/runtime.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
