Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. 192.168.178.21:5432
  2. 192.168.178.22:5432
  3. 192.168.178.23:5432
  4.  
  5. psql -h 127.0.0.1 -p 5432 -U <user> -d <db>
  6.  
  7. psql: could not connect to server: Connection refused
  8. Is the server running on host "127.0.0.1" and accepting
  9. TCP/IP connections on port 5432?
  10.  
  11. firewall-cmd --zone=internal --add-masquerade --permanent
  12. firewall-cmd --zone=internal --add-forward-port=port=5432:proto=tcp:toport=5432:toaddr=192.168.178.22 --permanent
  13. firewall-cmd --reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement