このコンテンツは選択した言語では利用できません。
10.4. Running as a Service on Microsoft Windows Server
Open a command prompt with elevated privileges.
Navigate toC:\Windows\System32
and right-click oncmd.exe
. Select .Change to the Enterprise Application Platform directory where the service installation script is located.
cd
JBOSS_DIST\native\sbin
Optional: Edit
services.bat
to pass parameters to the Application Server at start-up.Under:cmdStart
, alter the following line:call "%SVCPATH%\run.bat" < .r.lock >> run.log 2>&1
To run the 'default' profile binding to the 'localhost' address, change to the following:call "%SVCPATH%\run.bat" -c default -b localhost < .r.lock >> run.log 2>&1
For a full list of parameters torun.bat
see the Getting Started Guide.Run the service installation script.
service.bat install
Check that the service is installed.
Under the Windows services list you will find this listed by the short name JBEAP5SVC and the long name JBoss EAP 5.Note
To uninstall the service, issue the following command from a command prompt with elevated privileges:sc delete "JBEAP5SVC"
.