Subject: Check to see if it's running
Author: Linux
In response to: Configure Postgres
Posted on: 09/04/2017 11:25:13 PM
PostgreSQL database server runs on default port 5432.
You can check it via:
administrator@ubuntu:~$ netstat -tuln | grep 5432
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
>
> On 09/04/2017 11:19:17 PM
Linux wrote:
Step 4) Configure Postgres to allow reomte access -- optional
-- adminstrator@ubuntu:~$ sudo nano /etc/postgresql/9.6/main/postgresql.conf
Change:
#listen_addresses = 'localhost'
to:
Step 5) Restart Postgres -- optional
-- adminstrator@ubuntu:~$ sudo /etc/init.d/postgresql restart
References: