응용 프로그램( apache storm
)에서 아래 예외 발생을 시작할 수 없습니다.
2022-04-12 04:56:13.997 o.a.s.d.u.UIServer main [ERROR] Exception in UlServer
java.io.I0Exception: Failed to bind to 0.0.0.0/0.0.0.0:8888
at org.eclipsejettyserver.ServerConnector.openAcceptChannel(ServerConnectorjava346) ~[jetty-server-9.4.14.v20181114jan9.4.14.v20181114]
at org.eclipsejetty.server.ServerConnector.open(ServerConnectorjava:308) ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
at org.eclipsejetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnectorjava:80) ~[jetty-server-9.4.14.v20181114jar:9.4.14.v20181114]
at org.eclipsejetty.server.ServerConnector.doStart(ServerConnectorjava:236) ~[jetty-server-9.4.14.v20181114jar.9.4.14-v20181114]
at org.eclipsejetty.util.component.AbstractUfeCycle.start(AbstractlifeCyclejava:68) ~[jetty-util-9.4.14.v20181114jan9.4.14.v20181114]
at org.eclipsejetty.server.Server.doStart(Serverjava:394) ~[jetty-server-9.4.14.v20181114.jar9.4.14.v20181114)
at org.eclipsejetty.util.component.AbstractLifeCycle.start(AbstractlifeCyclejava:68) ~[jetty-util-9.4.14.v20181114jar.9.4.14.v20181114]
at org.apache.storm.daemon.ui.U1Server.main(U1Serverjaval 79) [storm-webapp-2.2.0jar:2.2.0]
Caused by: java.net-BindException: Address already in use
at sun.nio.ch.Net.bindO(Native Method) ~[?:?]
at sumnio.ch.Net.bind(Netjava:455) ~[?:?]
at sun.nio.ch.Netbind(Netjava:447) ~[?:?]
at sun.nio.chServerSocketChannelImpl.bind(ServerSocketChannellmpljava:227) ~[?:?]
at sumnio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptorjava:80) ~[?:?]
at org.eclipsejetty.server.ServerConnector.openAcceptChannel(ServerConnectorjava:342) ~[jetty-server-9.4.14.v20181114jan9.4.14.v20181114]
... 7 more
포트는 무료이지만 이를 보장하기 위해 여러 도구( telnet
, 등) nc
를 사용했습니다. netstat
또한 다른 앱을 사용하는 다른 서버에서도 동일한 동작이 발견되었지만 OS: RHEL 7.9 JMV
기반도 마찬가지였습니다.
자바: 11.0.12
답변1
확인해 보세요TCP그리고UDP청취자들도
netstat -plantu | grep 8888
다음으로 열려 있는 포트를 확인할 수 있습니다.이소프~도
lsof -i -P -n
예제 출력
root@machine:~# lsof -i -P -n
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
memcached 471 memcache 26u IPv4 18741 0t0 TCP 127.0.0.1:11211 (LISTEN)
vsftpd 511 root 3u IPv6 18621 0t0 TCP *:21 (LISTEN)
sshd 516 root 3u IPv4 16971 0t0 TCP *:22 (LISTEN)
sshd 516 root 4u IPv6 16980 0t0 TCP *:22 (LISTEN)
mysqld 831 mysql 21u IPv6 20656 0t0 TCP *:33060 (LISTEN)
mysqld 831 mysql 26u IPv4 17309 0t0 TCP *:3306 (LISTEN)
apache2 32378 root 4u IPv6 4392606 0t0 TCP *:80 (LISTEN)
apache2 32378 root 6u IPv6 4392610 0t0 TCP *:443 (LISTEN)
apache2 32396 www-data 4u IPv6 4392606 0t0 TCP *:80 (LISTEN)
apache2 32396 www-data 6u IPv6 4392610 0t0 TCP *:443 (LISTEN)
apache2 32397 www-data 4u IPv6 4392606 0t0 TCP *:80 (LISTEN)
apache2 32397 www-data 6u IPv6 4392610 0t0 TCP *:443 (LISTEN)