WDlinux官方论坛's Archiver

shujun 发表于 2011-12-24 16:38

请老大指点,装了最新的lnamp如何支持ipv6访问

小弟用的是84的VPS,已经分到了ipv6.昨天装了wdcp和lnamp,想使用ipv6。安装网上的说法在域名.conf中listen下面加上了  
[code]ip:80
[ipv6]:80[/code]   
但是执行
[code]/www/wdlinux/nginx-0.8.54/sbin/nginx -t[/code]
还是提示
[code]
[emerg]: the INET6 sockets are not supported on this platform in "[2607:f878:3:15:0:302:3356:10]:80" of the "listen" directive in /www/wdlinux/nginx-0.8.54/conf/vhost/bbs.shujun.net.conf:3
[/code]

请大哥指点迷津,另外ipv6口号喊了这么久,前日温总的讲话也提到加快ipv6商用,不知大哥会不会在下不版本中加入对ipv6的支持。

shujun 发表于 2011-12-25 18:35

老大好久没来了哦

admin 发表于 2011-12-25 22:35

不用这样加,只要系统支持有IPV6就可以的了
conf文件里,只要端口就可以了

shujun 发表于 2011-12-26 00:17

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=2231&ptid=897]3#[/url] [i]admin[/i] [/b]


    [font=Times New Roman][size=3][color=#000000]报告老大 已经修改成默认的  只保留80端口 可是还是不行  [/color][/size][/font]
[code] server {
        listen       80;
        server_name ipv6.shujun.net;
        root /www/web/bbs/public_html;
        index  index.html index.php index.htm;
        ……
[/code]
域名已经做了AAAA解析

admin 发表于 2011-12-26 09:32

重新编译下nginx,并加上支持IPV6的选项试试
--with-ipv6
然后在conf也加上listen的ipv6试试

shujun 发表于 2011-12-26 19:38

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=2238&ptid=897]5#[/url] [i]admin[/i] [/b]


    再向老大反馈,我重新编译了nginx还是不行,升级到1.1.11版本也不行。不修改conf,浏览器访问显示连接失败。
若对default.conf做如下修改
[code] server {
listen 184.22.160.106:80;
listen [2607:f878:3:15:0:302:3356:10]:80
server_name localhost;
root /www/web/default;
index index.php index.html index.htm;
……
[/code]
但还是显示4楼的错误,老大若是方便的话,我把vps的密码发给您,您看下是什么原因

haosea 发表于 2011-12-28 13:05

升级到1.1.11版本也不行。不修改conf,浏览器访问显示连接失败

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.