1
jybox 2013-11-29 18:50:38 +08:00
netstat 看看
|
2
jybox 2013-11-29 18:50:50 +08:00
检查一下 iptables
|
3
refresh OP @jybox 加了27017还是不行,iptables结果如下,对linux还不是太熟悉。
target prot opt source destination ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 REJECT all -- 0.0.0.0/0 127.0.0.0/8 reject-with icmp-port-unreachable ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 DROP all -- 0.0.0.0/0 0.0.0.0/0 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:27017 Chain FORWARD (policy ACCEPT) target prot opt source destination DROP all -- 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:27017 |
4
breeswish 2013-11-29 19:47:51 +08:00
1. iptables关掉以后试试
2. mongodb重启了么 3. 是否有硬件上的防火墙阻止了 |
6
Ever 2013-11-29 20:48:33 +08:00
drop all和accept 27017位置换一下
|
7
ETiV 2013-11-29 20:48:58 +08:00
DROP all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:27017 顺序错了 |