PostgreSQL数据库安装,数据库启动
安装准备
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