# debian安装postgresq **Repository Path**: weilijiang/debian-install-postgreseq ## Basic Information - **Project Name**: debian安装postgresq - **Description**: debian安装postgresq - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-07-20 - **Last Updated**: 2024-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # debian安装postgresq ## 第一步,添加PostgreSQL软件源 ```bash sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' ``` ## 第二步,(使用新方式)添加PostgreSQL证书 ```bash wget -q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/postgresql.gpg ``` ## 第三步,安装 ```bash apt -y install postgresql ```