solr-solr creates Core Admin

1. Click Core Admin

2. Follow the steps above to create a Core Admin

3. The error is reported as above

Reason: Cannot find the corresponding configuration file

Solution: Copy the configuration file to the corresponding directory

3.1 Enter the directory /opt/solr-7.7.2/server/solr/configsets/_default

[root@test-2021 _default]# pwd
/opt/solr-7.7.2/server/solr/configsets/_default

3.2 Copy the configuration file to the target directory /opt/solr-7.7.2/server/solr/test01

The test01 folder is in the directory solr, but there is no configuration file.

[root@test-2021 solr]# ll
total 24
drwxr-xr-x 4 root root 4096 May 17  2019 configsets
-rw-r--r-- 1 root root 3018 May 17  2019 README.txt
-rw-r--r-- 1 root root 2180 May 17  2019 solr.xml
drwxr-xr-x 2 root root 4096 Feb 26 16:04 test01
-rw-r--r-- 1 root root  975 May 17  2019 zoo.cfg

Copy the configuration file to test01.

[root@test-2021 _default]# pwd
/opt/solr-7.7.2/server/solr/configsets/_default
[root@test-2021 _default]# ll
total 4
drwxr-xr-x 3 root root 4096 Feb 26 15:22 conf
[root@test-2021 _default]# cp -r conf/ /opt/solr-7.7.2/server/solr/test01

conf appears in the test01 file.

[root@test-2021 test01]# ll
drwxr-xr-x 3 root root 4096 Feb 26 17:12 conf

4. Continue to create Core Admin

Click "Add Core"

The above information appears, indicating that test01 was successfully created.

Related documents are in the test01 directory.

[root@test-2021 test01]# ll
total 12
drwxr-xr-x 3 root root 4096 Feb 26 17:12 conf
-rw-r--r-- 1 root root  129 Feb 26 17:14 core.properties
drwxr-xr-x 5 root root 4096 Feb 26 17:14 data

 

Guess you like

Origin blog.csdn.net/A_bad_horse/article/details/114137633