我可以在服务器上ping pong Redis:
# redis-cli ping
PONG
但是在远程,我遇到了问题:
$ src/redis-cli -h REMOTE.IP ping
Could not connect to Redis at REMOTE.IP:6379: Connection refused
在配置中,我得到了标准端口:
# Accept connections on the specified port, default is 6379.
# If port 0 is specified Redis will not listen on a TCP socket.
port 6379
所以也许我应该在远程Ubuntu计算机上打开端口6379?我该怎么做?