Nexus 启动失败:无法设置本地主机
Nexus fails starting: Unable to set localhost
我正在尝试通过 homebrew 在 MacOS 上安装 运行 Nexus。到目前为止安装很顺利。已安装版本 2.13。
通过nexus console
启动时出现如下错误:
ERROR [jetty-main-1] *SYSTEM net.sf.ehcache.Cache - Unable to set localhost.
This prevents creation of a GUID. Cause was:
87.128.123.10.dyn.in-addr.arpa: 87.128.123.10.dyn.in-addr.arpa
java.net.UnknownHostException: 87.128.123.10.dyn.in-addr.arpa: 87.128.123.10.dyn.in-addr.arpa
at java.net.InetAddress.getLocalHost(InetAddress.java:1475) ~[na:1.7.0_79]
at net.sf.ehcache.Cache.<clinit>(Cache.java:217) ~[ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:303) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:219) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.CacheManager.configure(CacheManager.java:648) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:407) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.CacheManager.init(CacheManager.java:357) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:242) [ehcache-core-2.5.1.jar:na]
at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.createCacheManager(CacheManagerComponentImpl.java:112) [nexus-ehcache-2.13.0-01.jar:2.13.0-01]
at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.<init>(CacheManagerComponentImpl.java:57) [nexus-ehcache-2.13.0-01.jar:2.13.0-01]
at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.<init>(CacheManagerComponentImpl.java:52) [nexus-ehcache-2.13.0-01.jar:2.13.0-01]
at org.sonatype.sisu.ehcache.CacheManagerComponentImpl$$FastClassByGuice$e60c0a8.newInstance(<generated>) [sisu-guice-3.1.10.jar:2.13.0-01]
...
当我打开 http://localhost:8081
时,向我显示了这个 404 错误页面:
hostname
命令输出:
87.128.123.10.dyn.in-addr.arpa
ifconfig en0
命令输出:
en0: flags=8863 UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=10b
...
inet 10.123.128.87 netmask 0xfffffc00 broadcast 10.123.131.255
nd6 options=1
media: autoselect (100baseTX )
status: active
Nexus 默认在 /nexus 上下文中运行,所以请尝试 http://localhost:8081/nexus
Jetty 返回 404 页面,因此应用服务器 运行 正常,一切都应该没问题。
如果 localhost 不起作用,请尝试使用您的 IP 号码或 127.0.0.1
我正在尝试通过 homebrew 在 MacOS 上安装 运行 Nexus。到目前为止安装很顺利。已安装版本 2.13。
通过nexus console
启动时出现如下错误:
ERROR [jetty-main-1] *SYSTEM net.sf.ehcache.Cache - Unable to set localhost.
This prevents creation of a GUID. Cause was:
87.128.123.10.dyn.in-addr.arpa: 87.128.123.10.dyn.in-addr.arpa
java.net.UnknownHostException: 87.128.123.10.dyn.in-addr.arpa: 87.128.123.10.dyn.in-addr.arpa
at java.net.InetAddress.getLocalHost(InetAddress.java:1475) ~[na:1.7.0_79]
at net.sf.ehcache.Cache.<clinit>(Cache.java:217) ~[ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:303) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:219) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.CacheManager.configure(CacheManager.java:648) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:407) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.CacheManager.init(CacheManager.java:357) [ehcache-core-2.5.1.jar:na]
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:242) [ehcache-core-2.5.1.jar:na]
at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.createCacheManager(CacheManagerComponentImpl.java:112) [nexus-ehcache-2.13.0-01.jar:2.13.0-01]
at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.<init>(CacheManagerComponentImpl.java:57) [nexus-ehcache-2.13.0-01.jar:2.13.0-01]
at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.<init>(CacheManagerComponentImpl.java:52) [nexus-ehcache-2.13.0-01.jar:2.13.0-01]
at org.sonatype.sisu.ehcache.CacheManagerComponentImpl$$FastClassByGuice$e60c0a8.newInstance(<generated>) [sisu-guice-3.1.10.jar:2.13.0-01]
...
当我打开 http://localhost:8081
时,向我显示了这个 404 错误页面:
hostname
命令输出:
87.128.123.10.dyn.in-addr.arpa
ifconfig en0
命令输出:
en0: flags=8863 UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=10b
...
inet 10.123.128.87 netmask 0xfffffc00 broadcast 10.123.131.255
nd6 options=1
media: autoselect (100baseTX )
status: active
Nexus 默认在 /nexus 上下文中运行,所以请尝试 http://localhost:8081/nexus
Jetty 返回 404 页面,因此应用服务器 运行 正常,一切都应该没问题。
如果 localhost 不起作用,请尝试使用您的 IP 号码或 127.0.0.1