环境 Ubuntu 20.04 PostgreSql 12 准备操作 如果是内外环境,比如开发机无法直连,先设置下出口代理 export http_proxy="...." export https_proxy="...." 安装Postgres 导入官方仓库密钥 sudo apt-get install curl ca-certificates gnupg curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - 更新…