PostgreSQL 是一个功能强大的开源关系型数据库,以下是不同操作系统的安装步骤:

🐧 Ubuntu/Debian 系统

  1. 更新包列表

    sudo apt update
    
    Ubuntu_PostgreSQL
  2. 安装 PostgreSQL

    sudo apt install postgresql
    
    PostgreSQL_Installation

🐕 CentOS/RHEL 系统

  1. 添加 PostgreSQL 仓库

    sudo rpm -Uvh https://download.postgresql.org/media/server/15/RPMS/postgresql-15.repo
    
    CentOS_PostgreSQL_Repo
  2. 安装 PostgreSQL

    sudo dnf install postgresql-server
    
    PostgreSQL_CentOS_Install

📚 扩展阅读

如需快速上手 PostgreSQL,可访问 /tutorials/postgresql/quick_start 学习基础操作。