zoukankan      html  css  js  c++  java
  • PostgreSQL安装配置

     本篇将介绍在PostgreSQL安装部署。

    目录:

    1.下载

    2.Windows部署

    3.CentOS部署

    4.设置

    5.参考资料

    1.下载

      下载地址:http://www.postgresql.org/download/或者http://www.enterprisedb.com/products-services-training/pgdownload

    2.Windows部署

      下载windows下的安装程序,执行安装(附带pgAdmin III)。

      默认端口5432,默认超级用户postgres/postgres。

    3.CentOS部署

      3.1.Installer安装,下载linux下的安装程序,执行安装(附带pgAdmin III)。

      3.2.yum安装,

    $ yum install postgresql-server 

      注:RHEL/CentOS/SL/OL 7          提供PostgreSQL版本:9.2

        RHEL/CentOS/SL/OL 6          提供PostgreSQL版本:8.4(also supplies package postgresql92)

      PostgreSQL高版本安装:

    $ yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm
    
    $ yum install postgresql94-server postgresql94-contrib
    
    $ service postgresql-9.4 initdb
    
    $ chkconfig postgresql-9.4 on 

    4.设置

      4.1.远程访问:

        配置文件:postgresql.conf

        listen_addresses = '*'

        文件:pg_hba.conf

        在该配置文件的host all all 127.0.0.1/32 md5行下添加以下配置或者修改:

        host    all    all    0.0.0.0/0    md5

        如果不希望允许所有IP远程访问,则可以将上述配置项中的0.0.0.0设定为特定的IP值。

      4.2.客户端:pgAdmin--PostgreSQL管理工具(http://www.pgadmin.org/)

    5.参考资料

      http://www.postgresql.org/

    知识共享许可协议
    本作品由江俊杰(Steven Jiang)创作,采用知识共享署名 4.0 国际许可协议进行许可。
  • 相关阅读:
    对Promise的理解?
    对JavaScript垃圾回收机制的理解?
    说明split()与join()函数的区别?
    目标检测评估标准
    训练自己的数据集
    ssd_mobilenet_demo
    c++读取数据
    0XFF
    python读取数据
    快速排序
  • 原文地址:https://www.cnblogs.com/stevenjiang/p/4957146.html
Copyright © 2011-2022 走看看