Horje
could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? Code Example
could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?
cd /etc/postgresql/9.x/main/
------- open file named postgresql.conf
sudo nano postgresql.conf
------- add this line to that file
listen_addresses = '*'
------- then open file named pg_hba.conf
sudo nano pg_hba.conf
------- and add this line to that file
host  all  all 0.0.0.0/0 md5
------- restart your server
sudo /etc/init.d/postgresql restart




Shell

Related
ubuntu Permissions for directory: /etc/sudoers.d Code Example ubuntu Permissions for directory: /etc/sudoers.d Code Example
How to check if a string is null or empty in PowerShell? Code Example How to check if a string is null or empty in PowerShell? Code Example
mongodb get all users Code Example mongodb get all users Code Example
PowerShell remove object from array Code Example PowerShell remove object from array Code Example
awk lowercase Code Example awk lowercase Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11