Я пытаюсь изменить pg_hba.conf , но когда я вставляю sudo nano ../../etc/postgresql/9.3/ main / pg_hba.conf
У меня появился экран [Директория '../../etc/postgresql/9.3/main' не существует] Я все забыл Установить PostgreSQL Я рабочий вычислительный механизм
После того, как вы нашли pg_hba.conf, вы можете редактировать файл.
В вашем случае это должно быть
sudo nano /etc/postgresql/9.5/main/pg_hba.conf
. Вы также можете перейти к
cd /etc/postgresql/9.5/main/
и отредактировать файл оттуда
sudo nano pg_hba.conf
You are using a relative path and probably you are not in the directory mentioned in the manual.
../
is the path to the parent directory. In in case you are currently in the user's home directory ../../
is the path to the root directory /
.
The solution is to use absolute path, so tray with:
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
Try to locate pg_hba.conf with following coomand.
find / | grep pg_hba.conf
May be you installed a different version of postgresql.