我已根据官方指南下载并安装了Nexus 2。 然后运行它。在日志文件中看不到任何奇怪的东西。 但是,当我可以尝试获取网络界面http://apphost:9990/nexus/时,我会在网页上看到:
Directory: /nexus/
LICENSE.html 12043 bytes May 31, 2017 7:39:55 AM
WEB-INF/ 4096 bytes May 31, 2017 7:39:55 AM
favicon.ico 1150 bytes May 31, 2017 7:39:49 AM
favicon.png 1179 bytes May 31, 2017 7:39:49 AM
images/ 4096 bytes May 31, 2017 7:39:55 AM
robots.txt 86 bytes May 31, 2017 7:39:49 AM
似乎Java没有正确运行,因为它只显示静态内容。 Screenshot
安装了Java:
[opt]$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Nexus home:
echo $NEXUS_HOME
/opt/nexus
日志文件:
jvm 1 | 2017-06-01 05:20:43,496-0700 DEBUG [jetty-main-1] *SYSTEM org.sonatype.nexus.NxApplication - Started
jvm 1 | 2017-06-01 05:20:43,496-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.webapp.WebappBootstrap - Initialized
jvm 1 | 2017-06-01 05:20:43,552-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.InstrumentedSelectChannelConnector - Metrics enabled
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.AbstractConnector - Started InstrumentedSelectChannelConnector@0.0.0.0:9990
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Running
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Started
jvm 1 | 2017-06-01 05:20:47,915-0700 DEBUG [HC4x-EvictingThread] *SYSTEM org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Closing expired connections
jvm 1 | 2017-06-01 05:20:47,916-0700 DEBUG [HC4x-EvictingThread] *SYSTEM org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Closing connections idle longer than 30000 MILLISECONDS
感谢您的任何建议
答案 0 :(得分:1)
我已经解决了这个问题。 我猜存档已损坏。 完成重新安装后,Nexus成功运行。