Issue - How to register with JBoss EAP 7.2 Windows Service
How to register with JBoss EAP 7.2 Windows Service
Test Environment
- Test OS : Windows NT
- Test Version : JBoss EAP 7.2
참고
https://access.redhat.com/solutions/3015541
사전 준비
사전 준비물 다운로드
- Download JBoss EAP 7 release (either jar installer or zip installer) from Red Hat customer portal Software Downloads page.
- Download any JBoss EAP 7.x.y cumulative patch that you want to install on top of EAP 7.x from this Patches page.
- Download Apache Jsvc from this Apache Jsvc download page.
시스템 환경 변수 등록
- Check article Supported Configurations and make sure supported / tested infrastructure (Windows OS, and Java versions, etc.) are used.
As instructed in Installation Guide, JAVA_HOME and NOPAUSE=1 system environment variables need to be present.
서비스 등록 명령
service.bat install /name "JBoss7-Server01" /controller "localhost:9990" /config "standalone-ha.xml" /jbossuser "admin" /jbosspass "admin1@34" /logpath "E:\app\Redhat\waslog\testsvr01"
** password 특수문자 인식이 안되는 경우 발생 **
같은 NT 장비에 추가적인 서버을 등록을 위해서는 아래와 같은 작업 수행
서비스 등록전에 port-offset 값 standalone.xml 파일에서 수정 (bat에 넣어줄 경우 service.bat에서 인식이 제대로 안됨 )
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:100}">
rem jbcs-jsvc 파일 경로 수정 필요
set PRUNSRV=
if exist "%JBOSS_HOME%\..\test01-jbcs-jsvc-1.1\sbin\prunsrv.exe" (
set PRUNSRV="%JBOSS_HOME%\..\test01-jbcs-jsvc-1.1\sbin\prunsrv.exe"
) else if exist "%JBOSS_HOME%\bin\prunsrv.exe" (
set PRUNSRV="%JBOSS_HOME%\bin\prunsrv.exe"
) else (
echo Please install native utilities into expected location %JBOSS_HOME%\..\test01-jbcs-jsvc-1.1
goto cmdEnd
)
서비스 추가 등록
service.bat install /name "JBoss7-Server02" /controller "localhost:10090" /config "standalone-ha.xml" /jbossuser "admin" /jbosspass "admin1@34" /logpath "E:\app\Redhat\waslog\testsvr02"
서비스 등록 해제
service.bat uninstall /name "JBoss7-Server11"
0 Comments:
댓글 쓰기