CentOS7.6上安装PostgreSQL11

CentOS的安装

由于CentOS7.6开始java11,所以选择这个新版本
官方下载地址:CentOS7.6

llvm及clang

由于centos自带的版本不够高,直接安装postgresql会报错,所以先给llvm和clang升级

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum localinstall epel-release-latest-7.noarch.rpm 
yum install llvm5.0 llvm5.0-devel clang

llvm最新的是7,上面的方法只能升级到5,不过也够用了。

升级repo

 yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm

安装postgresql11

yum install postgresql11*

猜你喜欢

转载自blog.csdn.net/u012220365/article/details/86563223