solrconfig配置文件:
schema配置文件:
执行目录:
/opt/solr-5.5.4/server/scripts/cloud-scripts
-- 下载配置文件
./zkcli.sh -zkhost 172.16.101.54:2181,172.16.101.55:2181,172.16.101.56:2181 -cmd getfile /configs/myconf/managed-schema /home/application/managed-schema
./zkcli.sh -zkhost 172.16.101.54:2181,172.16.101.55:2181,172.16.101.56:2181 -cmd getfile /configs/myconf/solrconfig.xml /home/application/solrconfig.xml
-- 修改配置文件
vi
-- 上传配置文件
./zkcli.sh -zkhost 172.16.101.54:2181,172.16.101.55:2181,172.16.101.56:2181 -cmd putfile /configs/myconf/managed-schema /home/application/managed-schema
./zkcli.sh -zkhost 172.16.101.54:2181,172.16.101.55:2181,172.16.101.56:2181 -cmd putfile /configs/myconf/solrconfig.xml /home/application/solrconfig.xml
-- 重新加载配置文件
http://172.16.102.53:8983/solr/admin/collections?action=RELOAD&name=npccollection