1.根据官网的教程在Linux系统安装postgreSQL数据库
- Select version: 9.6 (数据库版本)
- Select platform: CentOS_6 (Linux系统)
- Select architecture: x86_64
- Install the repository RPM:
yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm
- Install the client packages:
yum install postgresql96
- Optionally install the server packages:
yum install postgresql96-server
- Optionally initialize the database and enable automatic start:
service postgresql-9.6 initdb
chkconfig postgresql-9.6 on
service postgresql-9.6 start
2.启动postgreSQL ,进行初步配置
- 启动数据库