downmovies 发表于 2017-12-18 23:13:26

solr安装linux

http://lucene.apache.org/solr/quickstart.html  

  
bin/solr start
  
bin/solr start -c -z server1:2181,server2:2181
  
bin/solr create -c myindex
  
bin/solr create -c logs -d basic_configs -n basic will upload the server/solr/configsets/basic_configs/conf directory to ZooKeeper as /configs/basic.
  
bin/solr create -c mycoll -d /tmp/myconfigs, will upload /tmp/myconfigs into ZooKeeper under /configs/mycoll
  

  
bin/solr create -c par_module -d myconfigs -n myconfig
  

  
Other collections can share the same configuration by specifying the name of the shared configuration using the -n option. For instance, the following command will create a new collection that shares the basic configuration created previously: bin/solr create -c logs2 -n basic
页: [1]
查看完整版本: solr安装linux