我要在流浪汉中设置Redis服务器。在ubuntu ssh中,我可以ping redis,但是当我从Windows ping时,redis不会回复
这里是我在ubuntu中签入的帐户(没有Filewall,没有iptable)
vagrant@ubuntu-xenial:~$ ps aux | grep redis
redis 2988 0.1 0.3 37220 3184 ? Ssl 11:05 0:00 /usr/bin/redis-server 0.0.0.0:6379
vagrant 3000 0.0 0.0 12940 1012 pts/0 S+ 11:07 0:00 grep --color=auto redis
vagrant@ubuntu-xenial:~$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1303/sshd
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 2988/redis-server 0
tcp6 0 0 :::22 :::* LISTEN 1303/sshd
vagrant@ubuntu-xenial:~$
这是我的流浪文件
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "forwarded_port", guest: 6379, host: 6379, auto_correct: true
end
当我从Windows ping时,redis不会抛出错误或回复,而只是等待