Register the service
About this task
Perform the following steps to register the server as a service:
Steps
-
Stop the server with
bin\stop-server
. A server cannot be registered while it is running. -
Register the server as a service. From a Windows command prompt, run
bat\register-windows-service.bat
. -
After a server is registered, start the server from the Windows Services Control Panel or with the
bat\start-server.bat
command.Command-line arguments for the
start-server.bat
andstop-server.bat
scripts are not supported while the server is registered to run as a Windows service. Using a task to stop the server is also not supported.