Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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