2020-06-05 20:10:55 版本 : postgresql安装
作者: 文艺范儿 于 2020年06月05日 发布在分类 / Linux / 服务安装 下,并于 2020年06月05日 编辑
 历史版本

修改日期 修改人 备注
2020-06-05 21:23:43[当前版本] 文艺范儿 格式调整
2020-06-05 21:10:25 文艺范儿 格式调整
2020-06-05 20:10:55 文艺范儿 创建版本

centos7安装postgresql

依据官方文档进行yum安装,

https://www.postgresql.org/download/linux/redhat/

安装方法


  1. 选择办版本: 12
  2. 选择平台: CentOS,
  3. 选择架构: x86_64
  4. 安装存储库RPM:
    yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
  5. 安装客户端:
    yum install -y postgresql12
  6. 安装服务端:
    yum install -y postgresql12-server
  7. 可以选择初始化数据库并启用开机自启动:
    /usr/pgsql-12/bin/postgresql-12-setup initdb
    systemctl enable postgresql-12
    systemctl start postgresql-12
历史版本-目录  [回到顶端]
    文艺知识分享平台 -V 4.9.5 -wcp
    京公网安备100012199188号 京ICP备2021030911号