A PowerShell script that performs the following operations
Note: All steps performed only if necessary.
- Downloads NSSM and Solr (locations configured in parameters)
- Adds a host file entry
- Configures SSL
- Moves the
example
directory toserver
and removes the examplecollection1
- Extracts a blank copy of the Solr cores for Sitecore into the cores directory
- Registers Solr as a service (name configured in parameters)
- Runs the service and loads a web browser to the admin interface
- solrVersion - The version of Solr to install (used to download the right .zip file)
- installFolder - The directory into which to install Solr and NSSM
- solrPort - The port number to use for the web interface
- solrHost - The hostname to use for the web interface
- solrSSL - Whether or not to enable SSL for Solr
- nssmVersion - The version of NSSM to install (used to download the right .zip file)
- JREVersion - The current version of Java installed on the local machine (used to find the right JRE path)
- solrInstanceName - The desired name of the Solr service
-
Java VM 8+
- After installing, make sure to update the
$JREVersion
parameter in the script to your installed version number
- After installing, make sure to update the
-
Microsoft's PackageManagement PowerShell Modules
-
Microsoft.PowerShell.Archive
module installedInstall-Module Microsoft.PowerShell.Archive