Skip to main content

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 solr

To restart the Solr service

sudo systemctl restart solr

Start Solr

sudo systemctl start solr

Stop Solr

sudo systemctl stop solr

Enable Solr (Start on Boot)

sudo systemctl enable solr

Disable Solr (Do Not Start on Boot)

sudo systemctl disable solr

Check Solr Version

solr version

Check Solr Health

curl http://localhost:8983/solr/admin/info/system

View Solr Logs

# Adjust the path based on your Solr installation

tail -f /path/to/solr/server/logs/solr.log

Reload Solr Cores (After Configuration Changes)

curl http://localhost:8983/solr/admin/cores?action=RELOAD&core=your_core_name

Remember 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.