简体   繁体   English

使用静态IP地址配置API连接时,我遇到IBM API连接问题

[英]I am facing issue with IBM API connect when I configure the API connect using static IP address

I am facing issue with IBM API connect when I configure the API connect using static IP address but it is working fine with DHCP IP address. 当我使用静态IP地址配置API连接时,我遇到IBM API连接问题,但与DHCP IP地址配合使用时效果很好。

Some logs I found in logger are 我在记录器中找到的一些日志是

[org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.unpublishContextAsOsgiService] Unpublishing application context OSGi service for bundle spring-osgi-web-extender (org.springframework.osgi.web.extender) java.net.ConnectException: Connection refused [org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.unpublishContextAsOsgiService]取消发布捆绑包spring-osgi-web-extender的应用程序上下文OSGi服务(org.springframework.osgi.web.extender)java.net.ConnectException:拒绝连接

[org.springframework.osgi.web.deployer.support.AbstractWarDeployer.deploy] Successfully deployed bundle [cmc (com.ibm.apimgmt.cmc.war)] at [/cmc] on server org.apache.catalina.core.StandardService/1.0 java.net.ConnectException: Connection refused [org.springframework.osgi.web.deployer.support.AbstractWarDeployer.deploy]已成功将捆绑包[cmc(com.ibm.apimgmt.cmc.war)]部署在服务器org.apache.catalina.core.StandardService的[/ cmc]上/1.0 java.net.ConnectException:连接被拒绝

[com.ibm.apimgmt.util.events.x2020.X2020EventPoster$X2020EventPosterRunnable.run] Could not POST to: http://localhost:9500/cmc/monitoringevent java.net.ConnectException: Connection refused [com.ibm.apimgmt.util.events.x2020.X2020EventPoster $ X2020EventPosterRunnable.run]无法发布到: http:// localhost:9500 / cmc / monitoringevent java.net.ConnectException:连接被拒绝

Please provide me your guidance. 请提供我的指导。

Thanks & Regards, Vijaykumar 谢谢与问候,Vijaykumar

DHCP (Dynamic Host Configuration Protocol) dynamically allocates IP addresses to a requesting host from a pool of IP addresses. DHCP(动态主机配置协议)将IP地址从IP地址池动态分配给发出请求的主机。 While a DHCP server may preferentially allocate the same IP address to the same host for multiple requests, it is not guaranteed . 尽管DHCP服务器可能会为多个请求优先将同一IP地址分配给同一主机,但这并不能保证

In contrast, a static IP address stays permanently associated to a host. 相反,静态IP地址保持与主机永久关联。 In your case, the static IP address and the DHCP-assigned IP address do not match. 在您的情况下,静态IP地址和DHCP分配的IP地址不匹配。 Your connection goes through to the specific IP address you are trying to call. 您的连接将转到您要呼叫的特定IP地址。 This target system may or may not exist. 该目标系统可能存在或可能不存在。 If such a system does exist, it will likely not be listening at the target port. 如果确实存在这样的系统,则它很可能不会在目标端口上侦听。

This is corroborated by the fact that you are getting a java.net.ConnectException: Connection refused error. 您收到java.net.ConnectException: Connection refused错误的事实证实了这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM