English 中文(简体)
启动jboss windows服务,以便从外部可见
原标题:Start jboss windows service to be visible from outside

我已经成功地安装了jboss,因为windows服务找到了这篇文章http://www.jboss.org/jbossweb/install/service.html

当我尝试它时localhost:8080/它可以工作,但当我尝试从另一台计算机访问它时,我无法打开它。

当我在eclipse中设置jboss时,我通常会传递参数-b 0.0.0.0,它可以在外部工作,我该如何为这个windows服务执行此操作?非常感谢。

最佳回答

我过去曾通过在service.bat文件中显式指定参数来完成此操作。

您应该看到service.bat文件中对run.bat的调用的位置,此时您可以添加-b 0.0.0.0参数

call run.bat -b 0.0.0.0
问题回答

我手头没有windows安装,但我认为您只需要编辑run.bat来添加-b 0.0.0.0程序参数,然后重新运行生成JBoss服务的程序。你能公布run.bat的内容吗?

我浏览了服务.bat,发现

:cmdStart
REM Executed on service start
del .r.lock 2>&1 | findstr /C:"being used" > nul
if not errorlevel 1 (
  echo Could not continue. Locking file already in use.
  go到cmdEnd
)
echo Y > .r.lock
jbosssvc.exe -p 1 "Starting %SVCDISP%" > run.log
call run.bat -b 0.0.0 .0< .r.lock >> run.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log
del .r.lock
go到cmdEnd

编辑<code>调用run.bat<。r.lock>>;run.log 2>&;1

call run.bat -b 0.0.0.0 < .r.lock >> run.log 2>&1

您应该看到在service.bat文件中对run.bat的调用位置,然后可以添加-b 0.0.0.0参数

请记住service.bat文件位于jboss_home/bin中。在我的版本中,我有两行调用“call run.bat<;.r.lock>;>;run.log 2>;&;1”,所以我将其更改为“call run-bat-b 192.xxx.xxx.xxx-c all<;.r.lock<;>!run.log 2>;&aamp;1”。

埃尔南。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签