> 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/server-administration/runtime.md).

# Chapter 18. Server Setup and Operation

**Table of Contents**

[18.1. The PostgreSQL User Account](/server-administration/runtime/postgres-user.md)

[18.2. Creating a Database Cluster](/server-administration/runtime/creating-cluster.md) : [18.2.1. Use of Secondary File Systems](/server-administration/runtime/creating-cluster.md#CREATING-CLUSTER-MOUNT-POINTS)

```
[18.2.2. File Systems](creating-cluster.md#CREATING-CLUSTER-FILESYSTEM)
```

[18.3. Starting the Database Server](/server-administration/runtime/server-start.md) : [18.3.1. Server Start-up Failures](/server-administration/runtime/server-start.md#SERVER-START-FAILURES)

```
[18.3.2. Client Connection Problems](server-start.md#CLIENT-CONNECTION-PROBLEMS)
```

[18.4. Managing Kernel Resources](/server-administration/runtime/kernel-resources.md) : [18.4.1. Shared Memory and Semaphores](/server-administration/runtime/kernel-resources.md#SYSVIPC)

```
[18.4.2. systemd RemoveIPC](kernel-resources.md#SYSTEMD-REMOVEIPC)

[18.4.3. Resource Limits](kernel-resources.md#KERNEL-RESOURCES-LIMITS)

[18.4.4. Linux Memory Overcommit](kernel-resources.md#LINUX-MEMORY-OVERCOMMIT)

[18.4.5. Linux Huge Pages](kernel-resources.md#LINUX-HUGE-PAGES)
```

[18.5. Shutting Down the Server](/server-administration/runtime/server-shutdown.md)

[18.6. Upgrading a PostgreSQL Cluster](/server-administration/runtime/upgrading.md) : [18.6.1. Upgrading Data via pg\_dumpall](/server-administration/runtime/upgrading.md#UPGRADING-VIA-PGDUMPALL)

```
[18.6.2. Upgrading Data via pg_upgrade](upgrading.md#UPGRADING-VIA-PG-UPGRADE)

[18.6.3. Upgrading Data via Replication](upgrading.md#UPGRADING-VIA-REPLICATION)
```

[18.7. Preventing Server Spoofing](/server-administration/runtime/preventing-server-spoofing.md)

[18.8. Encryption Options](/server-administration/runtime/encryption-options.md)

[18.9. Secure TCP/IP Connections with SSL](/server-administration/runtime/ssl-tcp.md) : [18.9.1. Basic Setup](/server-administration/runtime/ssl-tcp.md#SSL-SETUP)

```
[18.9.2. OpenSSL Configuration](ssl-tcp.md#SSL-OPENSSL-CONFIG)

[18.9.3. Using Client Certificates](ssl-tcp.md#SSL-CLIENT-CERTIFICATES)

[18.9.4. SSL Server File Usage](ssl-tcp.md#SSL-SERVER-FILES)

[18.9.5. Creating Certificates](ssl-tcp.md#SSL-CERTIFICATE-CREATION)
```

[18.10. Secure TCP/IP Connections with GSSAPI Encryption](/server-administration/runtime/gssapi-enc.md) : [18.10.1. Basic Setup](/server-administration/runtime/gssapi-enc.md#GSSAPI-SETUP)

[18.11. Secure TCP/IP Connections with SSH Tunnels](/server-administration/runtime/ssh-tunnels.md)

[18.12. Registering Event Log on Windows](/server-administration/runtime/event-log-registration.md)

This chapter discusses how to set up and run the database server, and its interactions with the operating system.

The directions in this chapter assume that you are working with plain PostgreSQL without any additional infrastructure, for example a copy that you built from source according to the directions in the preceding chapters. If you are working with a pre-packaged or vendor-supplied version of PostgreSQL, it is likely that the packager has made special provisions for installing and starting the database server according to your system's conventions. Consult the package-level documentation for details.

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/runtime.html)（英文原文，待翻譯）


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
