之前有人问android的开发主机用什么系统
ubuntu 8.10, 9.04,9.10都有人用,我用的是debian testing.
之前ddms用了一段时间后来用不了了,用不了就算了,就用gdb,前段时间
做android CTS不用它不行了,不得不来解决这个问题。
debian这种技术性的社区就是爱先进。现在也没什么人用ipv6,
它非要放进去,结果java的net功能就问题了。
vax:/etc/sysctl.d# cat bindv6only.conf
# This sysctl sets the default value of the IPV6_V6ONLY socket option.
#
# When disabled, IPv6 sockets will also be able to send and receive IPv4
# traffic with addresses in the form ::ffff:192.0.2.1 and daemons listening
# on IPv6 sockets will also accept IPv4 connections.
#
# When IPV6_V6ONLY is enabled, daemons interested in both IPv4 and IPv6
# connections must open two listening sockets.
# This is the default behaviour of almost all modern operating systems.
net.ipv6.bindv6only = 1
vax:/etc/sysctl.d#
这里设置成0就可以了
net.ipv6.bindv6only = 0
最好还是reboot一下
vax:/proc/sys/net/ipv6# ls
bindv6only icmp ip6frag_low_thresh ip6frag_time neigh xfrm6_gc_thresh
conf ip6frag_high_thresh ip6frag_secret_interval mld_max_msf route
vax:/proc/sys/net/ipv6# echo 0 >bindv6only
最近从事秘密项目,暂时不能写,可能几个月之后能披露出来:)
阅读(3346) | 评论(0) | 转发(0) |