这啥代码啊?
你那个不就是错误页面把ServerName漏出来了么。。。
【 在 siper (asonats) 的大作中提到: 】
: 标 题: Re: ubuntu下kbs启动错误
: 发信站: 水木社区 (Sat Aug 21 22:51:04 2010), 转信
:
: 是这样的兔总
: ifconfig ip显示为 ipA
: 但/etc/hosts 里面ip是 127.0.1.1 ubuntu
: 代码中
: gethostname (hostname, sizeof (hostname)
: hp = gethostbyname (hostname)
: memcpy (&ipp, hp->h_addr_list[0], sizeof (hp->h_addr_list[0]))
: host_ip = inet_ntoa (ipp)
: 得到的host_ip是 127.0.1.1 与系统实际ipA不同
: 所以要手动修改hosts文件为ipA
:
:
: 【 在 fancyrabbit (fancy★岁月静好现世安稳) 的大作中提到: 】
: : 这啥ip不对啊……
:
:
: --
:
: ※ 来源:·水木社区 newsmth.net·[FROM: 211.99.222.*]
--
FROM 123.116.112.*