How can I bind a JBoss AS 6 running as service to 0.0.0.0?

早过忘川 提交于 2019-12-24 11:07:48

问题


Where in the JBoss AS 6 startup script can I set the -b 0.0.0.0 parameter like in JBoss AS 5? The new version reads input from a temporary file .r.lock

: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.
  goto cmdEnd
)
echo Y > .r.lock
jbosssvc.exe -p 1 "Starting %SVCDISP%" > run.log
call run.bat < .r.lock >> run.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log
del .r.lock
goto cmdEnd

回答1:


I suppose you should modify these line:

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

for something like that:

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

You can read more in JBoss Docs (its for JBoss EAP 5.1 but I think it should be similar): Run the Application Server as a Service.



来源:https://stackoverflow.com/questions/7171875/how-can-i-bind-a-jboss-as-6-running-as-service-to-0-0-0-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!