Centos7 安装 PostgreSql 14 数据库 和 timescaledb 时序库

Centos7 安装 PostgreSql 14 数据库 和 timescaledb 时序库

一 准备工作

系统 :Centos7

postgres 14 官网下载地址:https://www.postgresql.org/download/linux/redhat/

二 开始部署 PostgreSql 14 数据库

2.1 下载postgres 14 rpm 安装

从官网下载,按照图片,根据你电脑,服务器的配置下载rpm包。
在这里插入图片描述
下载的地址 :
https://download.postgresql.org/pub/repos/yum/14/redhat/rhel-7.5-x86_64/

(1)下载的包:
postgresql14-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-contrib-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-devel-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-docs-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-libs-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-llvmjit-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-odbc-13.02.0000-1PGDG.rhel7.x86_64.rpm
postgresql14-plperl-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-plpython3-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-pltcl-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-server-14.2-1PGDG.rhel7.x86_64.rpm
postgresql14-tcl-2.7.7-1.rhel7.x86_64.rpm
postgresql-unit_14-7.4-1.rhel7.x86_64.rp

(2)安装
yum install postgresql14-libs-14.2-1PGDG.rhel7.x86_64.rpm -y

yum install postgresql14-14.2-1PGDG.rhel7.x86_64.rpm -y

yum install postgresql14-server-14.2-1PGDG.rhel7.x86_64.rpm -y

2.2 直接安装

(1) 安装yum源(服务器可访问互联网时用)

sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

(2) 安装客户端
yum install postgresql14 –y
(3) 安装服务端
yum install postgresql14-server -y

2.3 初始化数据库

使用yum安装后,会在系统中创建一个postgres的无密码用户。在主节点服务器切换

评论 19
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yang_z_1

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值