pg配置
Posted connected
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pg配置相关的知识,希望对你有一定的参考价值。
-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配置的主要内容,如果未能解决你的问题,请参考以下文章
Mac + virtualenv + pip + postgresql = 错误:找不到 pg_config 可执行文件