进入到solr的bin目录执行:solr create_core -c testcase,testcase为你自己随便定义的核心名称。
提示:Created new core 'testcase' 说明创建成功
说明:可以创建多个core
一、创建实例:D:\solr-7.7.0\bin>solr create_core -c testcaseWARNING: Using _default configset with data driven schema functionality. NOT RECOMMENDED for production use.
To turn off: bin\solr config -c testcase -p 8983 -action set-user-property -property update.autoCreateFields -value false
INFO - 2019-08-14 17:54:05.336; org.apache.solr.util.configuration.SSLCredentialProviderFactory; Processing SSL Credential Provider
sprop
Created new core 'testcase'
二、创建结果
D:\solr-7.7.0\server\solr 进入此目录会发现多了一个testcase目录