错误原因:
由于一台电脑的IP在另一台电脑运行的程序中使用,导致出现这个错误
解决办法:
将运行程序中使用的IP改为本机IP地址
比如安装nexus的时候出现这个错误
检查安装nexus内置的jetty配置文件 /usr/local/nexus-2.11.4-01/conf/jetty-jmx.xml
修改jmx-host
<New id="ConnectorServer" class="org.eclipse.jetty.jmx.ConnectorServer">
<Arg>
<New class="javax.management.remote.JMXServiceURL">
<Arg type="java.lang.String">rmi</Arg>
<Arg type="java.lang.String"><Property name="jmx-host" default="192.112.11.29"/></Arg>
<Arg type="java.lang.Integer"><Property name="jmx-port" default="8089"/></Arg>
<Arg type="java.lang.String">/jndi/rmi://<Property name="jmx-host" default="192.112.11.29"/>:<Property name="jmx-port" default="8089"/>/jmxrmi</Arg>
</New>
</Arg>
<Arg>org.eclipse.jetty:name=rmiconnectorserver</Arg>
<Call name="start"/>
</New>
核对这个host是否和你的服务器ip一致
nexus启动完成后,nginx代理无法访问解决办法:
检查 nexus.properties
# Jetty section
application-port=8081
application-host=localhost
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus
nexus.properties 里的ip端口要和nginx.conf配置的代理路径保持一致