Xvfb : Unable to open socket for inet6

2015-10-26  籽藤 

启动 Xvfb 的时候,遇到以下错误:

_XSERVTransSocketOpenCOTSServer:Unable to open socket for inet6

_XSERVTransOpen:transport open failed for inet6/iZ115cl5depZ:1

_XSERVTransMakeAllCOTSServerListeners:failed to open listener for inet6

_XSERVTransSocketINETCreateListener:...SocketCreateListener() failed

_XSERVTransMakeAllCOTSServerListeners:server already running

(EE)

Fatal server error:

(EE) Cannotestablish any listening sockets - Make sure an X server isn't alreadyrunning(EE)

原因是:Xvfb 默认使用 ipv6,而当前机器不支持

解决方案:以下两种方式择其一:

  1. EnableIPv6

  2. 启动 Xvfb 时,带上参数“ -nolisten inet6”,比如:

    Xvfb :99 -screen 0 1024x768x24-extension RANDR -nolisten inet6 &

参考链接:https://www.java.net/node/677129


965°/9658 人阅读/0 条评论 发表评论

登录 后发表评论