To start solr on Linux just go to the the example folder of sole and run java -jar start.jar .

see the below given example

/apache-solr-1.2.0/example/
[root@pss2 example]# java -jar start.jar &
[1] 20691
[root@pss2 example]# 2009-10-22 15:21:29.943::INFO:  Logging to STDERR via org.m                                                                             ortbay.log.StdErrLog
2009-10-22 15:21:30.386::INFO:  jetty-6.1.3
2009-10-22 15:21:30.506::INFO:  Extract jar:file:/usr/local/apache-solr-1.2.0/ex                                                                             ample/webapps/solr.war!/ to /tmp/Jetty_0_0_0_0_8984_solr.war__solr__-sltihw/weba                                                                             pp
Oct 22, 2009 3:21:30 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
Oct 22, 2009 3:21:30 PM org.apache.solr.core.Config getInstanceDir
INFO: JNDI not configured for Solr (NoInitialContextEx)
Oct 22, 2009 3:21:30 PM org.apache.solr.core.Config getInstanceDir
INFO: Solr home defaulted to 'null' (could not find system property or JNDI)
Oct 22, 2009 3:21:30 PM org.apache.solr.core.Config setInstanceDir
INFO: Solr home set to 'solr/'
Oct 22, 2009 3:21:31 PM org.apache.solr.core.SolrConfig initConfig
INFO: Loaded SolrConfig: solrconfig.xml
Oct 22, 2009 3:21:31 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=/usr/local/apache-solr-1.2.0/example
Oct 22, 2009 3:21:31 PM org.apache.solr.core.SolrCore
INFO: Opening new SolrCore at solr/, dataDir=solr/data
Oct 22, 2009 3:21:31 PM org.apache.solr.schema.IndexSchema readConfig
INFO: Reading Solr Schema
Oct 22, 2009 3:21:31 PM org.apache.solr.schema.IndexSchema readConfig
INFO: Schema name=example
Oct 22, 2009 3:21:31 PM org.apache.solr.schema.IndexSchema readConfig

Post By Editor (2,827 Posts)

Website: →

Connect