JBOSS 端口问题
我用的是jboss-3.0.8_tomcat-4.1.24,把默认端口8080改成了8088,用run.bat启动jboss没有问题,一切正常,但是执行shutdown.bat来关闭jboss时,不能关闭,提示错误:
Shutting down server http://localhost:8080
http://localhost:8080/jmx-consol ... me&name=jboss.s
ystem%3Atype%3DServer&methodName=shutdown
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:15
at java.net.Socket.connect(Socket.java:461)
at java.net.Socket.connect(Socket.java:411)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.<a href="http://www.http.HttpClient.openServer(HttpClient.java:61www.http.HttpClient.openServer(HttpClient.java:61
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:521)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:49
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:626)
at java.net.URLConnection.getContent(URLConnection.java:585)
at org.jboss.Shutdown.shutdown(Shutdown.java:105)
at org.jboss.Shutdown.main(Shutdown.java:81)
Shutdown complete
如果我是用默认端口8080,执行shundown.bat关闭就完全没有问题.不知道能不能通过修改哪些文件来解决这个问题,还是shutdown已经写定了端口号在程序里面,无法修改啊,请大家帮忙解决啊~~~~~~~~~~~~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不管我怎么输入,都提示:
-bash: ./shutdown.sh: 权限不够
可我就是root啊!
而且chown shutdown.sh 也是 root用户root组啊
关闭时,加上参数<jboss_home>binshutdown.bat localhost 8088 -u <username> -p <password>
就可以关闭,一般username和password都为空,所以就只需要执行:
<jboss_home>binshutdown.bat localhost 8088
就ok了