2016-08-03 93 views
1

我试图通过自制在MacOS上安装并运行Nexus。迄今为止安装进展顺利。版本2.13已安装。Nexus无法启动:无法设置本地主机

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$$6e60c0a8.newInstance(<generated>) [sisu-guice-3.1.10.jar:2.13.0-01] 
    ... 

当我打开http://localhost:8081此404错误页面显示给我::

Nexus error page

hostname命令输出:

当我经由nexus console开始出现以下错误

87.128。 123.10.dyn.in-addr.arpa

ifconfig en0命令输出:

EN0:标志= 8863 UP,BROADCAST,SMART,跑步,SIMPLEX,MULTICAST MTU 1500
选项= 10b的
...
INET 10.123.128.87掩码0xfffffc00广播10.123.131.255
ND6选项= 1个
媒体:自动选择(的100baseTX)
ST的ATU:主动

+0

您是否检查主机文件条目对您的主机名? –

+1

我应该寻找什么?我看着'/ etc/hosts'。它包含“127.0.0.1 localhost”的条目。我加了'0.0.0.0 localhost'。虽然没有区别。 – JJD

+0

请尝试添加在主机中添加本地IP映射。 你可以请分享IP列在ifconfig输出和主机名输出? –

回答

1

的Nexus在默认情况下,/关系上下文中运行,所以请尽量http://localhost:8081/nexus

404页由码头,因此该应用服务器运行良好,一切都应该是好的返回。

如果本地主机不工作尝试使用您的IP地址或127.0.0.1

+0

当我再次坐在这台Mac上时,我会在星期一试试这个。感谢迄今为止的澄清。 – JJD