码迷,mamicode.com
首页 > 其他好文 > 详细

pg配置

时间:2020-04-05 11:49:41      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:usr   list   tar   master   ESS   div   bak   lsp   comm   

 

-bash-4.2$ cd $PGDATA
-bash-4.2$ ls
base              pg_commit_ts   pg_logical    pg_serial     pg_subtrans  pg_wal                postmaster.opts
current_logfiles  pg_dynshmem    pg_multixact  pg_snapshots  pg_tblspc    pg_xact               postmaster.pid
global            pg_hba.conf    pg_notify     pg_stat       pg_twophase  postgresql.auto.conf
log               pg_ident.conf  pg_replslot   pg_stat_tmp   PG_VERSION   postgresql.conf

-bash-4.2$ cp postgresql.conf postgresql.conf.bak
-bash-4.2$ vi postgresql.conf 

listen_addresses = 0.0.0.0

 

-bash-4.2$ cp pg_hba.conf pg_hba.conf.bak
-bash-4.2$ vi pg_hba.conf
host    all             all             0.0.0.0/0               md5

 

-bash-4.2$ /usr/pgsql-12/bin/pg_ctl restart

可查看日志:cd $PGDATA/log


pg配置

标签:usr   list   tar   master   ESS   div   bak   lsp   comm   

原文地址:https://www.cnblogs.com/connected/p/12635678.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!