postgres 笔记
1.postgres 数据库存放位置 centos 7下默认 var\lib\pgsql\data
2.配置postgressql 远程访问
2.1 修改data 目录下 pg_hba.conf 加入
host all all 0.0.0.0/24 md5
2.2 修改postgresql.conf
listen_addresses= 'localhost' 改成 ='*'
postgresql 安装完成后,默认是只接受来自本机localhost人连接请求。
1.postgres 数据库存放位置 centos 7下默认 var\lib\pgsql\data
2.配置postgressql 远程访问
2.1 修改data 目录下 pg_hba.conf 加入
host all all 0.0.0.0/24 md5
2.2 修改postgresql.conf
listen_addresses= 'localhost' 改成 ='*'
postgresql 安装完成后,默认是只接受来自本机localhost人连接请求。