"could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?" Code Answer's
You're definitely familiar with the best coding language Shell/Bash that developers use to develop their projects and they get all their queries like "could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?" answered properly. Developers are finding an appropriate answer about could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? related to the Shell/Bash coding language. By visiting this online portal developers get answers concerning Shell/Bash codes question like could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?. Enter your desired code related query in the search bar and get every piece of information about Shell/Bash code related question on could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?.
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
Source: stackoverflow.com
All those coders who are working on the Shell/Bash based application and are stuck on could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? can get a collection of related answers to their query. Programmers need to enter their query on could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? related to Shell/Bash code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? for the programmers working on Shell/Bash code while coding their module. Coders are also allowed to rectify already present answers of could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? while working on the Shell/Bash language code. Developers can add up suggestions if they deem fit any other answer relating to "could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?". Visit this developer's friendly online web community, CodeProZone, and get your queries like could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? resolved professionally and stay updated to the latest Shell/Bash updates.