Quantcast
Channel: Admins Goodies » solr
Viewing all articles
Browse latest Browse all 10

How to stop Solr service from command line

$
0
0

Question

I used to start Solr with this command:

java -jar start.jar

and all I had to do to stop it was press Control + C

But then I started it this way:

java -jar start.jar &

Which starts it as a background process so I can get the shell back after it starts. But now I don’t know how to stop it. I am using Ubuntu Server.

Asked by JakeRow123

Answer

You started the process and put it in the background. List background processes with the jobs command.

To bring background processes to the foreground, use fg [job number]. From there, you can exit them as normal.


EDIT 1

In light of new information, the problem has nothing to do with foreground and background processes. Apparently the process is being started in the background, and then the terminal window is being closed. Thus, it’s not a job attached to the terminal anymore.

In this case, you simply kill the process associated with Solr. Use ps to find the process and kill to stop it.

Answered by WesleyDavid

Viewing all articles
Browse latest Browse all 10

Trending Articles