Re: Remote Connection Help

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Remote Connection Help
Дата
Msg-id
27323.1574360282@sss.pgh.pa.us
Ответ на
RE: Remote Connection Help (Jason L. Amerson)
Список
Дерево обсуждения
Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Adrian Klaver <adrian.klaver@aklaver.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Steve Crawford <scrawford@pinpointresearch.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Tom Lane <tgl@sss.pgh.pa.us>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Tom Lane <tgl@sss.pgh.pa.us>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Tom Lane <tgl@sss.pgh.pa.us>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Andrew Kerber <andrew.kerber@gmail.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Adrian Klaver <adrian.klaver@aklaver.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Adrian Klaver <adrian.klaver@aklaver.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Adrian Klaver <adrian.klaver@aklaver.com>
Re: Remote Connection Help Andrew Kerber <andrew.kerber@gmail.com>
Re: Remote Connection Help Adrian Klaver <adrian.klaver@aklaver.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Adrian Klaver <adrian.klaver@aklaver.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Adrian Klaver <adrian.klaver@aklaver.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Tom Lane <tgl@sss.pgh.pa.us>
Re: Remote Connection Help Mark Johnson <remi9898@gmail.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Tom Lane <tgl@sss.pgh.pa.us>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
Re: Remote Connection Help Ekaterina Amez <ekaterina.amez@zunibal.com>
Re: Remote Connection Help Steve Atkins <steve@blighty.com>
RE: Remote Connection Help "Jason L. Amerson" <drjason@alphagenius.org>
"Jason L. Amerson"  writes:
> I connected to PostgreSQL locally. I ran “show listen_addresses;” and it returned “localhost.” I ran “show port;” and it returned “5432.” I am now confused. I edited the “postgresql.conf” file and change the setting to ‘*’. Then I restarted the server with “service postgresql restart.” I was in root since I had to edit the config files. I thought maybe I edited the wrong file, like maybe there were two in two different locations or something. I ran “show confg_file;” and it returned “/usr/local/psql/data/postgresql.conf.” That is the same file I edited from the start. To be sure, I edited the file by using “nano /usr/local/psql/data/postgresql.conf.” I went down and found that I did have it as “listen_addresses = ‘*’ yet when I run “show listen_addresses”, it shows “localhost.” I am confused. When I run “netstat -nlt”, the results show that it is listening to “127.0.0.1:5432.”

According to what you wrote here, you did everything right, so it's
something you failed to mention.

One thing I'm wondering is whether you removed the comment symbol (#)
from the listen_addresses line when you edited it.  As installed,
postgresql.conf is pretty much all comments.

You might get more insight from

select * from pg_settings where name = 'listen_addresses';

particularly the source, sourcefile, sourceline fields.

			regards, tom lane


В списке pgsql-general по дате отправления
От: Jason L. Amerson
Дата:
Сообщение: RE: Remote Connection Help
От: Dave Hughes
Дата:
FAQ