llinux under solr7.7.2 use the command to create core

Internet search a lot of information, many turned a blog, found that after practice do not apply solr7.7.2 version, a large number of steps or step right, step on the pit several times and finally succeeded, it is hereby recorded reference for those who are new to solr

You need to press steps, otherwise it will create failure
1. Go to the next /opt/apache/solr-7.7.2/server/solr, create a folder new_core
mkdir new_core

2. Copy lib packet to the next Solr
CP /opt/apache/solr-7.7.2/contrib -rf /opt/apache/solr-7.7.2/server/solr
CP /opt/apache/solr-7.7.2/dist -rf /opt/apache/solr-7.7.2/server/solr

3. Copy the new new_core the conf
cp /opt/apache/solr-7.7.2/server/solr/configsets/_default/conf -rf /opt/apache/solr-7.7.2/server/solr/new_core

4. Create instance, go to the bin directory /opt/apache/solr-7.7.2/bin solr, if it is necessary to add the root user -force
./solr the Create -c new_core -force

Guess you like

Origin www.cnblogs.com/mxfjju/p/11280692.html