On 5/22/24 10:16, Lee Daniel wrote:
* Upon installing Apache Solr, a user */solr/* was automatically created.
o Running Solr through from the root is not recommend and will
terminate unless `-force` is used.
* If I switch accounts `su solr`/*, */run `/opt/solr/bin/solr start`,
I then get prompted for a password.
o Apparently, I cannot find any default password anywhere and it's
not the root.
+ It's not `solrocks` or `SolrRocks`.
o I have went through the installation .sh file but can't find any
password set during creation.
When you install Solr, the service starts as root just like every other
service, and switches to the unprivileged user as part of startup. This
switch happens in the service script, not in the solr script.
What happens if you type this command?
sudo service solr restart
This assumes that when you installed Solr that you did not override the
service name. If you did, then you will have to change "solr" in that
command to the actual service name you used.
You should not be calling the solr script directly, even as the solr
user. Ran in this way, it will not be configured correctly even if it
does start ... and chances are that it won't even start.
The installation script creates the solr user without a working
password, not even a blank password.
Thanks,
Shawn