2021-11-19 17:14:17,411 main ERROR Cannot access RandomAccessFile java.io.IOException: 文件名、目录名或卷标语法不正确。 java.io.IOException: 文件名、目录名或卷标语法不正确。
2021-11-19 17:14:17,420 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@6af2cbd5] unable to create manager for [${sys:solr.log.dir}/solr.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@25c32b60] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@6af2cbd5] unable to create manager for [${sys:solr.log.dir}/solr.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@25c32b60]
你这是配置的solr日志不对,你是不是在tomcat/bin下的catalina.bat下添加solr.log.dir的系统变量,指向日志存放文件夹,比如:
set "JAVA_OPTS=%JAVA_OPTS% -Dsolr.log.dir=D:\solrhome\logs"
这样不起作用,启动solr会报该错误,你需要把log4j2.xml文件中所有的${sys:solr.log.dir}修改为具体的路径,比如:d:\solrhome\logs,
0条评论
我要评论