I have been trying to reinstall postgresql-9.4, by:
sudo apt-get purge postgresql postgresql-common postgresql-9.4 postgresql-contrib-9.4
sudo apt-get install postgresql postgresql-common postgresql-9.4 postgresql-contrib-9.4
This, unfortunately results in a empty /etc/postgresql
directory. How can I get these configuration files back?
After a purge and install, default config files should've been created for you. It is odd that that is not the case.
Use
pg_createcluster 9.4 main
to create a new Pg cluster and config files.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.