2
我在做什麼:爲什麼Wildfly不會在http端口上偵聽?
我想在Ubuntu上運行Wildfly(作爲Oracle VM)。
問題:
我最近發現它停止監聽HTTP端口上。下面希望表明,Wildfly正在運行並配置爲偵聽8080但是,沒有偵聽此端口:
[email protected]:/opt/wildfly/bin$ ./jboss-cli.sh
Listening for transport dt_socket at address: 8787
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
[[email protected]:9990 /] [[email protected]:9990 /] /socket-binding-group=standard-sockets/socket-binding=http:read-resource
{
"outcome" => "success",
"result" => {
"client-mappings" => undefined,
"fixed-port" => false,
"interface" => undefined,
"multicast-address" => undefined,
"multicast-port" => undefined,
"name" => "http",
"port" => expression "${jboss.http.port:8080}"
}
}
[email protected]:~$ sudo netstat -pl | grep 8080
[email protected]:~$ sudo netstat -pl | grep 9990
tcp 0 0 localhost:9990 *:* LISTEN 1106/java
[email protected]:~$ ps -ef | grep 1106
polly 1106 1036 2 09:18 ? 00:00:05 java -D[Standalone] -server -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/opt/wildfly/standalone/log/server.log -Dlogging.configuration=file:/opt/wildfly/standalone/configuration/logging.properties -jar /opt/wildfly/jboss-modules.jar -mp /opt/wildfly/modules org.jboss.as.standalone -Djboss.home.dir=/opt/wildfly -Djboss.server.base.dir=/opt/wildfly/standalone -c standalone.xml
polly 2477 2384 0 09:22 pts/0 00:00:00 grep --color=auto 1106
我曾嘗試:
它似乎毫無意義,以抵消由於端口8080,據我所知,實際上是免費的,但我想它反正(無濟於事):
[email protected]:/opt/wildfly/bin$ sudo netstat -pl | grep 8180
[email protected]:/opt/wildfly/bin$ sudo netstat -pl | grep 10090
tcp 0 0 localhost:10090 *:* LISTEN 3165/java
[email protected]:/opt/wildfly/bin$ curl -X GET http://localhost:10090/console/App.html
<!DOCTYPE html>
<html>
<head>
<title>Management Interface</title>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script type="text/javascript" language="javascript" src="app/app.nocache.js"></script>
<link rel="shortcut icon" href="/console/images/favicon.ico" />
</head>
<body>
<!-- history iframe required on IE -->
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0px;height:0px;border:0px"></iframe>
<!-- pre load images-->
<div style="visibility:hidden"><img src="images/loading_lite.gif"/></div>
</body>
</html>
[email protected]:/opt/wildfly/bin$ curl -X GET http://localhost:8180
curl: (7) Failed to connect to localhost port 8180: Connection refused
我也試着學習日誌(下面的鏈接),但我看不到任何明顯的問題。
我的問題:
爲什麼Wildfly不聽HTTP端口上? 任何建議,我可以嘗試接下來將不勝感激。
日誌
https://1drv.ms/f/s!Ao4w10eVqKCjbLJ3OQdiy_WH9Q8