加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql for linux

发布时间:2020-12-13 17:16:02 所属栏目:百科 来源:网络整理
导读:按下面顺序安装: yum installhttp://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm yum install postgresql94-server postgresql94-contrib /usr/pgsql-9.4/bin/postgresql94-setup initdb servicepostgresql-9.4start (启

按下面顺序安装:

yum installhttp://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm

yum install postgresql94-server postgresql94-contrib

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

servicepostgresql-9.4start (启动数据库)

默认配置文件在var/lib/pgsql/9.4 目录下

修改postgresql.conf listen_addresses = '*' "*"代表所有ip都可以

修改 pg_hba.conf 配置host all all 172.16.0.0/16 trust 表示所有172.16开头的ip都可以访问

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读