PostgreSQL 在哪里存储配置/conf 文件? [英] Where does PostgreSQL store configuration/conf files?
本文介绍了PostgreSQL 在哪里存储配置/conf 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近使用 EnterpriseDB 包在 Ubuntu 上安装了 PostgreSQL.我可以在本地连接到数据库,但是我无法配置它,因为我找不到配置文件.我搜索了整个硬盘,只找到了像 pg_hba.conf.sample
I have recently installed PostgreSQL on Ubuntu with the EnterpriseDB package. I can connect to the database locally, but I can't configure it because I can't find config files. I searched through entire hard drive and found only samples like pg_hba.conf.sample
PostgreSQL .conf
文件在哪里?
Where are the PostgreSQL .conf
files?
推荐答案
或者询问你的数据库:
$ psql -U postgres -c 'SHOW config_file'
或者,如果以 ubuntu
用户身份登录:
or, if logged in as the ubuntu
user:
$ sudo -u postgres psql -c 'SHOW config_file'
这篇关于PostgreSQL 在哪里存储配置/conf 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文