简体   繁体   中英

How to query an unknown solr instance for its solr-spec from the command line

I have inherited a big compressed archive file containing a solr instance of uncertain origin. If I unpack it on my linux box and want to find out what version it is, is there a better way than starting it up with bin/solr start etc.?

When I start solr up the dashboard knows what its solr-spec is; can I find out what it is from the command line?

Most of the library jars have a version string embedded in the name. So, just grep the file list for solr-*.jar

Oh, and if you have bin/solr , you already must be on Solr 4.10+ or Solr 5. Before that, you started by doing java -jar start.jar in the example directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM