{"id":14,"date":"2023-09-10T18:40:37","date_gmt":"2023-09-10T18:40:37","guid":{"rendered":"https:\/\/kc2077.backoffice.prograph.io\/?p=14"},"modified":"2023-09-11T01:50:14","modified_gmt":"2023-09-11T01:50:14","slug":"how-to-install-solr-on-ubuntu","status":"publish","type":"post","link":"https:\/\/kc2077.backoffice.prograph.io\/2023\/09\/10\/how-to-install-solr-on-ubuntu\/","title":{"rendered":"How to Install Solr on Ubuntu"},"content":{"rendered":"

Solr installs in more or less the same way with any recent version, on any recent version of Ubuntu.<\/p>\n

Once you have provisioned your server, create a ssh terminal session.<\/p>\n

ssh user@example.com<\/code><\/p>\n

Update all the packages to most recent with the package manager.<\/p>\n

sudo apt update<\/code><\/p>\n

Install Java.<\/p>\n

sudo apt install openjdk-11-jdk<\/code><\/p>\n

Download the package from Apache.<\/p>\n

wget https:\/\/archive.apache.org\/dist\/lucene\/solr\/9.2.1\/solr-9.2.1.tgz<\/code><\/p>\n

Extract the install file.<\/p>\n

tar xzf solr-9.2.1.tgz solr-9.2.1\/bin\/install_solr_service.sh --strip-components=2<\/code><\/p>\n

Run the install script.<\/p>\n

sudo bash .\/install_solr_service.sh solr-9.2.1.tgz<\/code><\/p>\n

Check the server status.<\/p>\n

sudo systemctl status solr <\/code><\/p>\n

Check that you can turn solr on and off with systemctl.<\/p>\n

sudo systemctl stop solr<\/code><\/p>\n

sudo systemctl start solr<\/code><\/p>\n

Make solr start on reboot.<\/p>\n

sudo systemctl enable solr<\/code><\/p>\n

Create a core.<\/p>\n

sudo su - solr -c "\/opt\/solr\/bin\/solr create -c testCollection -n data_driven_schema_configs" <\/code><\/p>\n","protected":false},"excerpt":{"rendered":"

Solr installs in more or less the same way with any recent version, on any recent version of Ubuntu. Once you have provisioned your server, create a ssh terminal session. ssh user@example.com Update all the packages to most recent with the package manager. sudo apt update Install Java. sudo apt install openjdk-11-jdk Download the package … Continue reading “How to Install Solr on Ubuntu”<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6,7],"_links":{"self":[{"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/posts\/14"}],"collection":[{"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":2,"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":16,"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/posts\/14\/revisions\/16"}],"wp:attachment":[{"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kc2077.backoffice.prograph.io\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}