Skip to content

Instantly share code, notes, and snippets.

@alonisser
Last active August 29, 2015 14:06
Show Gist options
  • Save alonisser/a6d086ef06f086370285 to your computer and use it in GitHub Desktop.
Save alonisser/a6d086ef06f086370285 to your computer and use it in GitHub Desktop.
Connecting to remote mongo, redis, postgres
##Redis
change redis conf in remote server
```
vim /etc/redis/redis.conf
# change the original to this line
bind 0.0.0.0
```
try with:
```
redis-cli -h remote.FQDN ping #replace FQDN for your dns
PONG
```
##Mongodb
in /etc/mongod.cong
comment this line:
```
#bind_ip = 127.0.0.1
```
##Postrgresql
in /etc/postgresql/version.number/main/postgres.conf
listen_addresses='*'
and in pg_hba.conf
host all all 0.0.0.0/0 md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment