solr安装linux
http://lucene.apache.org/solr/quickstart.htmlbin/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]