Last active
August 29, 2015 14:06
-
-
Save alonisser/a6d086ef06f086370285 to your computer and use it in GitHub Desktop.
Connecting to remote mongo, redis, postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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