首页服务器Web服务器 CentOS7 PostgreSQL安装、配置、使用详解

CentOS7 PostgreSQL安装、配置、使用详解

CentOS7 PostgreSQL安装 Install 安装 使用yum安装 yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm
yum install post…

CentOS7 PostgreSQL安装

Install

安装

使用yum安装

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

设置开机启动

systemctl enable postgresql-9.4.service
systemctl start postgresql-9.4.service

初始化数据库

/usr/pgsql-9.4/bin/postgresql94-setup initdb

开启远程访问

/var/lib/pgsql/9.4/data/postgresql.conf

listen_addresses ='*'

/var/lib/pgsql/9.4/data/pg_hba.conf

# IPv4 local connections:host  all       all       127.0.0.1/32      trusthost  all       all       192.168.117.1/32    trust# IPv6 local connections:host  all       all       ::1/128         trust
本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/fwq/web/5441.html
上一篇详解Docker目录挂载的方法总结
下一篇 yum安装模糊查询所需要的软件包的方法(推荐)
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部