Postgres在Linux中查找配置文件 [英] Postgres find configuration files in linux

查看:666
本文介绍了Postgres在Linux中查找配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了很多时间来查找 Postgres 配置文件,例如 pg_hba.conf postgresql.conf 在Linux的不同发行版中,以及 postgres版本本身!我感到非常困惑...

I've spent lots of time to find Postgres configuration files like pg_hba.conf or postgresql.conf in different distributions of linux and also postgres versions itself! and I was very confused...

推荐答案

最后我找到了解决方案。

Finally I found the global solution for it.

首先,您应该执行以下步骤:

First you should follow these steps:


  1. su-postgres

  2. psql

  3. 用于postgres 配置文件

SHOW config_file;

输出应如下所示:

postgres=# SHOW config_file;
                   config_file
    ------------------------------------------
     /etc/postgresql/9.6/main/postgresql.conf
    (1 row)

并用于 hba_file

SHOW hba_file;

这篇关于Postgres在Linux中查找配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆