CentOS6.5安装postgresql9.6.7笔记

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS6.5安装postgresql9.6.7笔记相关的知识,希望对你有一定的参考价值。

 yum -y install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm

 yum -y install postgresql96-9.6.7

yum -y install postgresql96-server-9.6.7


service postgresql-9.6 initdb

chkconfig postgresql-9.6 on

service postgresql-9.6 start


登录


su - postgres

psql

查看库

\l;

创建库

create database abc;

切换库:\c  abc;

查看表

\d;


以上是关于CentOS6.5安装postgresql9.6.7笔记的主要内容,如果未能解决你的问题,请参考以下文章

centos73 postgresql9.6.2rpm 安装

postgresql9.6 的安装

Linux 安装并优化 postgreSQL9.6.2

Centos6.6下Postgresql9.6.6安装与配置

postgresql9.6 的安装教程

CentOS7安装配置PostgreSQL9.6