PolarDB for PostgreSQLPolarDB for PostgreSQL
  • 架构简介
  • 快速部署
  • 进阶部署
  • Preparation of Shared-Storage Device

    • 阿里云 ECS + ESSD 云盘存储
  • Preparation of File System

    • 格式化并挂载 PFS
  • Deploying PolarDB

    • 基于单机文件系统部署
    • 基于 PFS 文件系统部署
  • More about Deployment

    • 购买商业版
  • Daily Ops

    • 备份恢复
    • 共享存储在线扩容
    • 计算节点扩缩容
    • Replica 节点在线 Promote
  • Benchmarks

    • TPC-C 测试
    • TPC-H 测试
Kernel Features
  • PolarDB for PostgreSQL

    • Overview
    • HTAP Architecture
    • Buffer Management
    • DDL Synchronization
    • LogIndex
  • PostgreSQL

    • Code Analysis of ANALYZE
    • Sequence
  • 基于 Docker 容器开发
  • 定制开发环境
  • Code Contributing
  • Documentation Contributing
  • Coding Style
  • 问题报告
  • English
  • 简体中文
GitHub
  • 架构简介
  • 快速部署
  • 进阶部署
  • Preparation of Shared-Storage Device

    • 阿里云 ECS + ESSD 云盘存储
  • Preparation of File System

    • 格式化并挂载 PFS
  • Deploying PolarDB

    • 基于单机文件系统部署
    • 基于 PFS 文件系统部署
  • More about Deployment

    • 购买商业版
  • Daily Ops

    • 备份恢复
    • 共享存储在线扩容
    • 计算节点扩缩容
    • Replica 节点在线 Promote
  • Benchmarks

    • TPC-C 测试
    • TPC-H 测试
Kernel Features
  • PolarDB for PostgreSQL

    • Overview
    • HTAP Architecture
    • Buffer Management
    • DDL Synchronization
    • LogIndex
  • PostgreSQL

    • Code Analysis of ANALYZE
    • Sequence
  • 基于 Docker 容器开发
  • 定制开发环境
  • Code Contributing
  • Documentation Contributing
  • Coding Style
  • 问题报告
  • English
  • 简体中文
GitHub
  • Deployment

    • 架构简介
    • 快速部署
    • Advanced Deployment
      • Preparation of Shared-Storage Device

        • 阿里云 ECS + ESSD 云盘存储
      • Preparation of File System

        • 格式化并挂载 PFS
      • Deploying PolarDB

        • 基于单机文件系统部署
        • 基于 PFS 文件系统部署
    • More about Deployment

      • 购买商业版

快速部署

棠羽

2024/08/30

5 min

Caution

为简化使用,容器内的 postgres 用户没有设置密码,仅供体验。如果在生产环境等高安全性需求场合,请务必修改健壮的密码!

仅需单台机器,同时满足以下要求,就可以快速开启您的 PolarDB 之旅:

  • CPU 架构为 AMD64 / ARM64
  • 可用内存 4GB 以上
  • 已安装 Docker
    • Ubuntu:在 Ubuntu 上安装 Docker Engine
    • Debian:在 Debian 上安装 Docker Engine
    • CentOS:在 CentOS 上安装 Docker Engine
    • RHEL:在 RHEL 上安装 Docker Engine
    • Fedora:在 Fedora 上安装 Docker Engine
    • macOS:在 Mac 上安装 Docker Desktop,并建议将内存调整为 4GB 以上
    • Windows:在 Windows 上安装 Docker Desktop,并建议将内存调整为 4GB 以上

拉取 PolarDB for PostgreSQL 的 单机实例镜像,运行容器并试用 PolarDB-PG:

DockerHub
# 拉取镜像并运行容器
docker pull polardb/polardb_pg_local_instance:15
docker run -it --rm polardb/polardb_pg_local_instance:15 psql
# 测试可用性
postgres=# SELECT version();
                                   version
----------------------------------------------------------------------
 PostgreSQL 15.x (PolarDB 15.x.x.x build xxxxxxxx) on {your_platform}
(1 row)
阿里云 ACR
# 拉取镜像并运行容器
docker pull registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15
docker run -it --rm registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 psql
# 测试可用性
postgres=# SELECT version();
                                   version
----------------------------------------------------------------------
 PostgreSQL 15.x (PolarDB 15.x.x.x build xxxxxxxx) on {your_platform}
(1 row)
Edit this page on GitHub
Last Updated:
Contributors: Shijun.Zhou
Prev
架构简介
Next
Advanced Deployment