想考PCA认证的,请认真学习以下笔记(学霸笔记,必过过过)
1、二进制安装包安装
2、通过yum源安装
3、RPM安装
4、编译安装
注意事项:编译安装的时候,需要授权,如果不授权,init时,会报权限问题
在Linux安装PostgreSQL
① 二进制安装包安装
• EDB不再为PostgreSQL 11及更高版本提供Linux安装程序(windows版本继续提供),推荐用户使用源码编译安装
• 更早版本可参照 https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
② 通过yum安装
• 1)安装指南:https://www.postgresql.org/download/linux/redhat/
• 2) 安装RPM仓库
• yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
• 3) 安装PG
• yum search postgresql && yum install postgresql
• 干净卸载 yum remove postgresql;rpm -e --nodeps `rpm -qa | grep post