2016-08-03 90 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