Solr installation for Sitecore 10 - Aria-Akbariyeh/Docs GitHub Wiki
Solr Manual Installation Steps:
-
Install Java OpenJDK Version 9.0.4 (64-bit) https://www.oracle.com/java/technologies/javase/javase9-archive-downloads.html
-
Set JAVA_HOME environment variable: C:\Program Files\Java\jre-9.0.4
-
Download SOLR 8.4 https://archive.apache.org/dist/lucene/solr/8.4.0/
Use the following command to check all is good: "C:\Program Files\solr-8.4.0\bin\solr.cmd" -p 8983
Check the following URL to check solr can run: http://localhost:8983/solr/#/
- Create a self-signed certificate
go to your solr folder from CMD:
Cd C:\Program Files\solr-8.4.0
Then Create keystore:
"C:\Program Files\Java\jre-9.0.4\bin\keytool.exe" -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass secret -storepass secret -validity 9999 -keystore solr-ssl.keystore.jks -ext SAN=DNS:localhost,IP:127.0.0.1 -dname "CN=localhost, OU=Organizational Unit, O=Organization, L=Location, ST=State, C=Country"
Generate Certificate"
"C:\Program Files\Java\jre-9.0.4\bin\keytool.exe" -importkeystore -srckeystore solr-ssl.keystore.jks -destkeystore solr-ssl.keystore.p12 -srcstoretype jks -deststoretype pkcs12 -srcstorepass secret -deststorepass secret"
4.Move keystore and certificate to Solr C:\solr\solr-8.4.0\server\etc
5.Install Certificate into “Trusted Root Certification Authorities”
6.Enable SSL in Solr C:\Program Files\solr-8.4.0\bin\solr.in.cmd [Uncomment properties starting with SOLR_SSL*:]
7.Test Secure Solr from command line and browser again
8.Download NSSM https://nssm.cc/download 9.Extract NSSM.exe in C:\Program Files 10.Run NSSM: C:\Program Files\nssm.exe Install Solr840
Start the window service if not started.
Path – c:\Program Files\solr-8.4.0\bin\solr.cmd (Point to solr.cmd from in your installed SOLR 8.4.0\bin folder.
Startup directory- c:\Program Files\solr-8.4.0\bin (Point it to your SOLR 8.4.0\bin folder)
Arguments: start -f -p 8983 (port on which SOLR will run)
11.Solr Configuration is completed. browse https://localhost:8983