PingDirectory

Registering the server as a Windows service

Register the server as a Windows service using the Windows command prompt.

About this task

Perform the following steps to register the server as a service:

Steps

  1. Stop the server with bin\stop-server.

    You cannot register a server while it is running.

  2. To register the server as a service, from a Windows command prompt, run bat\register-windows-service.bat.

  3. 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.