Hey Shawn,
Thanks much for the reply.
I have used this command
* /sudo service solr start/stop/restart/
I have also run it by using:
* /sudo systemctl start/stop/restart solr/
But I assumed that's how it should be ran because of the documentation
for Apache Solr 9.5..
So my concern is, now that i'm working on getting SSL up and running the
documentation recommends that we run it using a different port. How
would you go about doing it?
Documentation method:
* /solr/bin/solr start -p 8984/
How would you start Solr on a separate port using /sudo service solr
restart/?
Would I have to do some manual changes?
On 2024/05/26 18:24:21 Shawn Heisey wrote:
> 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
>
>