How to run Solr Jetty in background
问题 I am using the Jetty/Solr build that comes with Solr and would like to run it in the background instead of in the terminal. Right now I start it by java -jar start.jar but I would like it to log to a file and run in the background on the server so that I can close the terminal window. I'm sure there is some java config that I can't find. I have tried java -jar start.jar > log.txt & but no luck still outputs to the terminal window. Thanks. 回答1: Try something like: nohup yourcommand > output