설정

postgresql 9.4 conf location

한만큼 2019. 10. 25. 17:09

41

If you type the following:

sudo su - postgres

after installing postgresql-server, that should take you right to the home directory of postgres and will have the configuration files you are looking for. Usually in a RHEL environment, the configuration files would be stored in /var/lib/pgsql/. On my test environment it is stored in /var/lib/pgsql/9.1/data.

shareimprove this answer

answered Oct 6 '15 at 18:18

ryekayo

3,14699 gold badges2929 silver badges5555 bronze badges

  • 1

    Saved my day. It's working for postgres 9.2 – Rahal Kanishka Nov 7 '17 at 6:42

  • 1

    In CentOS 7.6.1810 version is ommitted: /var/lib/pgsql/data/postgresql.conf and postgres home folder falls one folder short: /var/lib/pgsql 

https://unix.stackexchange.com/questions/234311/couldnt-find-postgresql-conf-pg-hba-conf-files-in-my-postgresql-installation

 

Couldn't find postgresql.conf & pg_hba.conf files in my postgresql installation

Following all the instructions from UNIXMEN, installed postgresql-9.4 in CentOS 6.4. Everything went well, started the service and could access pgsql screen. But when I try to configure the phpPgAd...

unix.stackexchange.com

 

왜 찾을라 햇는짇 ㅗ까먹엇네