Register the server as a Windows service using the Windows command prompt.
Stop the server with bin\stop-server.
You cannot register a server while it is running.
- To register the server as a service, from a Windows command prompt, run bat\register-windows-service.bat.
After registration, 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 and stop-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.