CentOS下 PostgreSQL数据库安装,数据库启动,数据库恢复, systemctl 方式启动 postgresql,postgresql.service文件

安装准备

1、根据需要的版本下载对应的安装包

下载地址 https://www.postgresql.org/ftp/source/

2、准备数据库连接工具

1、pgAdmin
下载地址https://www.pgadmin.org/
2、DBeaver
下载和使用参考地址 https://blog.csdn.net/sunny_day_day/article/details/107065672
3、Navicat
【正版需购买授权】

3、创建安装目录

mkdir /usr/local/pgsql/

数据库使用官方帮助文档

postgres9系列

http://postgres.cn/docs/9.3/index.html
http://postgres.cn/docs/9.4/index.html
http://postgres.cn/docs/9.5/index.html
http://postgres.cn/docs/9.6/index.html

postgres10

http://postgres.cn/docs/10/index.html

postgres11

http://postgres.cn/docs/11/index.html

postgres数据库安装配置

解压安装文件

gunzip postgresql-10.1.tar.gz

tar xf postgresql-10.1.tar

安装必要的插件工具

yum install gcc readline-devel zlib-devel 

编译安装

cd 到安装文件解压目录

./configure

make

su

make install

postgres数据库启动运行

初始化运行

adduser postgres

mkdir /usr/local/pgsql/data

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值