Skip to content

Instantly share code, notes, and snippets.

@Brad-Christie
Created July 23, 2019 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Brad-Christie/b174d98ff29f58c170ceb43b98bfda71 to your computer and use it in GitHub Desktop.
Save Brad-Christie/b174d98ff29f58c170ceb43b98bfda71 to your computer and use it in GitHub Desktop.
Install SOLR on WSL
#!/bin/sh
wget https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
wget https://archive.apache.org/dist/lucene/solr/7.5.0/solr-7.5.0.tgz
tar xzf ./openjdk-12.0.2_linux-x64_bin.tar.gz -C /usr/local/jdk-12.0.2/
tar xzf ./solr-7.5.0.tgz -C /usr/local/solr-7.5.0/
sudo nano /usr/local/solr-7.5.0/bin/solr.in.sh
# SET SOLR_JAVA_HOME="/usr/local/jdk-12.0.2" ]
# Press ctrl + x , y, <RETURN>
/usr/local/solr-7.5.0/bin/solr start
# visit http://localhost:8983/solr/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment