大数据——PostgreSQL快速安装使用及简单命令_d:/pgsql/bin/psql -h somehost -p 5432 -u postgres -CSDN博客

网站介绍:文章浏览阅读2.8k次。1、安装存储库 RPM:sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm2、安装指定版本sudo yum install -y postgresql12-server3、初始化sudo /usr/pgsql-12/bin/postgresql-12-setup initdb4、激活并开启sudo _d:/pgsql/bin/psql -h somehost -p 5432 -u postgres -d test