欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

解决solr无法加core

程序员文章站 2022-07-09 15:21:04
...

错误提示

解决solr无法加core

提示缺少配置文件:Error CREATEing SolrCore 'new_core': Unable to create core [new_core] Caused by: Can't find resource 'solrconfig.xml' in classpath or '/usr/local/solr7/solrhome/new_core'


解决方法:拷贝如下:

[aaa@qq.com ~]# cp /usr/local/solr/solr-7.3.0/server/solr/configsets/_default/conf -r /usr/local/solr/solrhome/new_core/

重启Tomcat:(先关闭再启动)

[aaa@qq.com conf]# /usr/local/solr/tomcat8/bin/shutdown.sh 

 

[aaa@qq.com conf]# /usr/local/solr/tomcat8/bin/startup.sh 
相关标签: solr