레이블이 windows인 게시물을 표시합니다. 모든 게시물 표시
레이블이 windows인 게시물을 표시합니다. 모든 게시물 표시

Issue - How to register with JBoss EAP 7.2 Windows Service

How to register with JBoss EAP 7.2 Windows Service

redhat


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"


windows doskey 명령어로 매크로 기능 이용하기

Welcome file


Windows cmd doskey 명령어로 매크로 기능 이용하기


Test Environment

  • Test OS : Windows 10

windows에서 CMD로 명령어를 수행하다 보면 Liunx에서 사용하던 명령어때문에 항상 헷갈려하는 명령어가

바로 dir = ls 명령어이다.

바로 이부분때문에 찾아본 명령어가 바로 doskey 명령어로 alias처럼 쓰는 방법에 대해 정리 하였다.

우선 사용할 명령어 정의

alias.cmd

@echo off

:: commands
doskey alias   = doskey $*
doskey cat     = type $*
doskey clear   = cls
doskey grep    = find $*
doskey history = doskey /history
doskey man     = help $*
::
doskey kill    = taskkill /PID $*
doskey ls      = dir $*
doskey ll      = dir $*
::
doskey cp      = copy $*
doskey cpr     = xcopy $*
doskey mv      = move $*
doskey rm      = del $*
doskey rmr     = deltree $*
::
doskey ps      = tasklist $*
doskey pwd     = cd
::
doskey sudo    = runas /user:administrator $*

레지스트에 등록하기

regedit

경로 : 컴퓨터\HKEY_CURRENT_USER\Software\Microsoft\Command Processor

이름 : Autorun

데이터 : E:\software\google\2_Shellscript\alias.cmd



적용 화면




이 블로그 검색

Popular Posts

WEB&&WAS

OS

Reviews