在ubuntu中使用默认banding时,求问获取到的ip为什么是127.0.0.1

4 views
Skip to first unread message

rgc

unread,
Sep 20, 2012, 8:03:29 AM9/20/12
to tuscany-s...@googlegroups.com
在ubuntu中使用默认banding时,求问获取到的ip为什么是127.0.0.1,怎么改才能使它变成eth0 的ip地址?

比如我在
<service name="DBService"  >
<tuscany:binding.jsonrpc uri="/DBComponent/DBService" />
</service>

我将获取到的endpoint进行打印,得到结果如下
Endpoint:  URI = DBComponent#service-binding(DBService/DBService):
component=DBComponent
service=DBService
isRemote=false
isAsyncInvocation=false
policySets=[]
binding=org.apache.tuscany.sca.binding.jsonrpc.impl.JSONRPCBindingImpl@176eeb9
deployedUri=http://127.0.1.1:8080/cn.edu.nju.moon.version-consistency/DBComponent/DBService/

我如何把127.0.0.1变成我eth0的ip地址?

我在windows中使用上面的binding时得到的ip 地址是我网卡得到的ip,而不是127.0.0.1

Reply all
Reply to author
Forward
0 new messages