首页 > 代码库 > solr 创建core

solr 创建core

mkdir /var/solr/data/CORE_NAME

cp -r /opt/solr/server/solr/configsets/basic_configs/* /var/solr/data/CORE_NAME/

chown -R solr:solr /var/solr/data/CORE_NAME

/opt/solr/bin/solr create_core -c CORE_NAME

solr 创建core