시작할 때 필요한 비밀번호와 마스터 비밀번호를 다음과 같은 방법 중 하나로 처리합니다.
Microsoft Windows에서는 사용자에게 비밀번호를 요청하도록 서비스를 구성합니다.
서비스 제어판에서 만든 서비스를 두 번 누릅니다.
등록 정보 창에서 로그온 탭을 누릅니다.
구성 요소를 시작할 때 비밀번호를 입력하도록 프롬프트를 표시하려면 “서비스와 데스크탑 상호 작용 허용”을 선택합니다.
로그인해야 프롬프트가 나타납니다. 입력할 때 입력한 내용이 표시되지 않습니다. 이 방법이 서비스 옵션을 사용하는 가장 안전한 방법이지만 서비스가 사용 가능해지기 전에 사용자의 상호 작용이 필요합니다.
“데스크탑과 상호 작용” 옵션을 설정하지 않은 경우 서비스는 “시작 보류 중” 상태를 유지하고 중단된 것으로 표시됩니다. 서비스 프로세스를 중단하고 이 상태에서 복구합니다.
Windows나 UNIX에서 --savemasterpassword=true 옵션을 사용하여 도메인을 만들고 비밀번호 파일을 만들어 관리자 비밀번호를 저장합니다. 구성 요소를 시작할 때 --passwordfile 옵션을 사용하여 비밀번호를 포함하는 파일을 가리킵니다.
예를 들면 다음과 같습니다.
저장한 마스터 비밀번호를 사용하여 도메인을 만듭니다. 이 구문에서는 관리자 비밀번호와 마스터 비밀번호를 묻습니다.
asadmin create-domain --adminport 4848 --adminuser admin --savemasterpassword=true --instanceport 8080 domain1 |
Windows에서는 비밀번호 파일을 사용하여 서비스를 만들고 관리자 비밀번호를 채웁니다.
C:\windows\system32\sc.exe create domain1 binPath= "C:\Sun\AppServer\lib\appservService.exe \"C:\Sun\AppServer\bin\asadmin.bat start-domain --user admin --passwordfile C:\Sun\AppServer\password.txt domain1\" \"C:\Sun\AppServer\bin\asadmin.bat stop-domain domain1\"" start= auto DisplayName= "SJESAS_PE8.1 DOMAIN1"
비밀번호 파일 password.txt의 경로는 C:\Sun\AppServer\password.txt입니다. 이 파일에는 다음 형식의 비밀번호가 포함되어 있습니다.
AS_ADMIN_password=password
예를 들어 adminadmin 비밀번호의 경우 다음과 같습니다.
AS_ADMIN_password=adminadmin
UNIX에서는inittab 파일에 추가한 줄에서 --passwordfile 옵션을 사용합니다.
das:3:respawn:/opt/SUNWappserver/bin/asadmin start-domain --user admin --passwordfile /opt/SUNWappserver/password.txt domain1 |
비밀번호 파일 password.txt의 경로는 /opt/SUNWappserver/password.txt입니다. 이 파일에는 다음 형식의 비밀번호가 포함되어 있습니다.
AS_ADMIN_password=password
예를 들어 adminadmin 비밀번호의 경우 다음과 같습니다.
AS_ADMIN_password=adminadmin