Andrew Fletcher published: 16 February 2024 (updated) 17 February 2024 1 minute read
On an Ubuntu 20.02 system with Nginx, you can utilize the following commands to handle Solr:
To verify the status of the Solr service
sudo systemctl status solrTo restart the Solr service
sudo systemctl restart solrStart Solr
sudo systemctl start solrStop Solr
sudo systemctl stop solrEnable Solr (Start on Boot)
sudo systemctl enable solrDisable Solr (Do Not Start on Boot)
sudo systemctl disable solrCheck Solr Version
solr versionCheck Solr Health
curl http://localhost:8983/solr/admin/info/systemView Solr Logs
# Adjust the path based on your Solr installation
tail -f /path/to/solr/server/logs/solr.logReload Solr Cores (After Configuration Changes)
curl http://localhost:8983/solr/admin/cores?action=RELOAD&core=your_core_nameRemember to replace your_core_name with the actual name of your Solr core. Additionally, adjust the paths and URLs based on your specific Solr setup.
Always be cautious when making changes to your Solr configuration or restarting services, especially in a production environment. Check logs and test your Solr instance after making significant changes.