Sometimes it is essential to stop the selenium server using command prompt. If we are starting the selenium server using command prompt, its very much easy to stop it by the command prompt.
java -jar selenium-server.jar
After using Ctrl+c, the server will shut down.
Suppose the selenium server is started by double clicking on the selenium-server.jar file, then we have to use a command to stop the selenium server. And the command looks like;
wmic path win32_process Where "CommandLine Like '%selenium-server.jar%'" Call Terminate