Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239014
  • 博文数量: 32
  • 博客积分: 2033
  • 博客等级: 大尉
  • 技术积分: 354
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-10 01:53
文章分类
文章存档

2011年(2)

2010年(16)

2009年(13)

2008年(1)

我的朋友

分类: LINUX

2010-07-22 10:11:15


之前有人问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


最近从事秘密项目,暂时不能写,可能几个月之后能披露出来:)

阅读(3181) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~