【问题】打开Solr控制台报500
=== ERROR 1 ===
HTTP ERROR 500
Problem accessing /solr/. Reason:
Server Error
Caused by:
javax.servlet.ServletException: javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.
=== ERROR 2 ===
[root@localhost ~]# docker-compose up -d
ERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml, docker-compose.yam
【解决】重启solr
- 切换到docker-compose.yml的目录,在后台运行solr启动脚本
[root@localhost ~]# cd /usr/local/docker/solr
[root@localhost solr]# docker-compose up -d
Starting solr ... done
[root@localhost solr]# cat docker-compose.yml
version: '3.1'
services:
solr:
image: solr
restart: always
container_name: solr
ports:
- 8983:8983