Hawtio港口冲突问题

时间:2017-06-27 23:36:25

标签: java mule jbossfuse hawtio

我正在尝试在Linux环境中执行Hawtio-1.5.jar。当我运行可执行文件时,它表示端口已在使用中。您能否建议如何更改Hawtio jar文件中的端口号以解决此问题?我无法更改其他服务已经使用的8080的端口号。

错误日志:

[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawtio at http://0.0.0.0:8080/hawtio
[main] WARN org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Address already in use
java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
    at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.Server.doStart(Server.java:293)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at io.hawt.embedded.Main.run(Main.java:122)
    at io.hawt.embedded.Main.run(Main.java:72)
    at io.hawt.app.App.main(App.java:101)

1 个答案:

答案 0 :(得分:2)

您可以按--port选项更改端口号:

java -jar hawtio-app-1.5.2.jar --port 8090

有关详细信息,请参阅http://hawt.io/getstarted/index.html