You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jeyaprakash Singarayar <jp...@gmail.com> on 2016/02/11 08:26:07 UTC

Running Solr on port 80

Hi,

I'm trying to install solr 5.4.1 on CentOS. I know that while installing
Solr as a service in the Linux we can pass -p <port number> to shift the
app to host on that port.

 ./install_solr_service.sh solr-5.4.1.tgz -p 8984 -f

but still it shows as it is hosted on 8983 and not on 8984. Any idea?

Waiting up to 30 seconds to see Solr running on port 8983 [/]
Started Solr server on port 8983 (pid=33034). Happy searching!

Found 1 Solr nodes:

Solr process 33034 running on port 8983
{
  "solr_home":"/var/solr/data",
  "version":"5.4.1 1725212 - jpountz - 2016-01-18 11:51:45",
  "startTime":"2016-02-11T07:25:03.996Z",
  "uptime":"0 days, 0 hours, 0 minutes, 11 seconds",
  "memory":"68 MB (%13.9) of 490.7 MB"}

Service solr installed.

RE: Running Solr on port 80

Posted by "Davis, Daniel (NIH/NLM) [C]" <da...@nih.gov>.
You should edit the files installed by install_solr_service.sh - change the init.d script to pass the -p argument to ${SOLRINSTALLDIR}/bin/solr.

By the way, my initscript is modified (a) to support the conventional /etc/sysconfig/<service-name> convention, and (b) to run solr as a different user than the user who owns the jars.     In the end, I don't use install_solr_service.sh at all, because it expects to have root and what I run to provision doesn't have root.

-----Original Message-----
From: Jeyaprakash Singarayar [mailto:jpsingarayar@gmail.com] 
Sent: Thursday, February 11, 2016 2:40 AM
To: solr-user@lucene.apache.org; binoydalal93@gmail.com
Subject: Re: Running Solr on port 80

That ok if I'm using it in local, but I'm doing it in a production based on the below page

https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production



On Thu, Feb 11, 2016 at 12:58 PM, Binoy Dalal <bi...@gmail.com>
wrote:

> Why don't you directly run solr from the script provided in 
> {SOLR_DIST}\bin ./solr start -p 8984
>
> On Thu, 11 Feb 2016, 12:56 Jeyaprakash Singarayar 
> <jp...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I'm trying to install solr 5.4.1 on CentOS. I know that while 
> > installing Solr as a service in the Linux we can pass -p <port 
> > number> to shift the app to host on that port.
> >
> >  ./install_solr_service.sh solr-5.4.1.tgz -p 8984 -f
> >
> > but still it shows as it is hosted on 8983 and not on 8984. Any idea?
> >
> > Waiting up to 30 seconds to see Solr running on port 8983 [/] 
> > Started Solr server on port 8983 (pid=33034). Happy searching!
> >
> > Found 1 Solr nodes:
> >
> > Solr process 33034 running on port 8983 {
> >   "solr_home":"/var/solr/data",
> >   "version":"5.4.1 1725212 - jpountz - 2016-01-18 11:51:45",
> >   "startTime":"2016-02-11T07:25:03.996Z",
> >   "uptime":"0 days, 0 hours, 0 minutes, 11 seconds",
> >   "memory":"68 MB (%13.9) of 490.7 MB"}
> >
> > Service solr installed.
> >
> --
> Regards,
> Binoy Dalal
>

Re: Running Solr on port 80

Posted by Binoy Dalal <bi...@gmail.com>.
The script essentially automates what you would do manually, for the first
time when starting up the system.
It is no different from extracting the archive, setting permissions etc.
yourself.
So the next time you wanted to stop/ restart solr, you'll have to do it
using the solr script.

That being said, I see that you've included a -f option along with your
command. Is that a typo? The script file doesn't have a -f option.

On Thu, 11 Feb 2016, 13:09 Jeyaprakash Singarayar <jp...@gmail.com>
wrote:

> That ok if I'm using it in local, but I'm doing it in a production based
> on the below page
>
> https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production
>
>
>
> On Thu, Feb 11, 2016 at 12:58 PM, Binoy Dalal <bi...@gmail.com>
> wrote:
>
>> Why don't you directly run solr from the script provided in
>> {SOLR_DIST}\bin
>> ./solr start -p 8984
>>
>> On Thu, 11 Feb 2016, 12:56 Jeyaprakash Singarayar <jpsingarayar@gmail.com
>> >
>> wrote:
>>
>> > Hi,
>> >
>> > I'm trying to install solr 5.4.1 on CentOS. I know that while installing
>> > Solr as a service in the Linux we can pass -p <port number> to shift the
>> > app to host on that port.
>> >
>> >  ./install_solr_service.sh solr-5.4.1.tgz -p 8984 -f
>> >
>> > but still it shows as it is hosted on 8983 and not on 8984. Any idea?
>> >
>> > Waiting up to 30 seconds to see Solr running on port 8983 [/]
>> > Started Solr server on port 8983 (pid=33034). Happy searching!
>> >
>> > Found 1 Solr nodes:
>> >
>> > Solr process 33034 running on port 8983
>> > {
>> >   "solr_home":"/var/solr/data",
>> >   "version":"5.4.1 1725212 - jpountz - 2016-01-18 11:51:45",
>> >   "startTime":"2016-02-11T07:25:03.996Z",
>> >   "uptime":"0 days, 0 hours, 0 minutes, 11 seconds",
>> >   "memory":"68 MB (%13.9) of 490.7 MB"}
>> >
>> > Service solr installed.
>> >
>> --
>> Regards,
>> Binoy Dalal
>>
>
> --
Regards,
Binoy Dalal

Re: Running Solr on port 80

Posted by Jeyaprakash Singarayar <jp...@gmail.com>.
That ok if I'm using it in local, but I'm doing it in a production based on
the below page

https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production



On Thu, Feb 11, 2016 at 12:58 PM, Binoy Dalal <bi...@gmail.com>
wrote:

> Why don't you directly run solr from the script provided in {SOLR_DIST}\bin
> ./solr start -p 8984
>
> On Thu, 11 Feb 2016, 12:56 Jeyaprakash Singarayar <jp...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I'm trying to install solr 5.4.1 on CentOS. I know that while installing
> > Solr as a service in the Linux we can pass -p <port number> to shift the
> > app to host on that port.
> >
> >  ./install_solr_service.sh solr-5.4.1.tgz -p 8984 -f
> >
> > but still it shows as it is hosted on 8983 and not on 8984. Any idea?
> >
> > Waiting up to 30 seconds to see Solr running on port 8983 [/]
> > Started Solr server on port 8983 (pid=33034). Happy searching!
> >
> > Found 1 Solr nodes:
> >
> > Solr process 33034 running on port 8983
> > {
> >   "solr_home":"/var/solr/data",
> >   "version":"5.4.1 1725212 - jpountz - 2016-01-18 11:51:45",
> >   "startTime":"2016-02-11T07:25:03.996Z",
> >   "uptime":"0 days, 0 hours, 0 minutes, 11 seconds",
> >   "memory":"68 MB (%13.9) of 490.7 MB"}
> >
> > Service solr installed.
> >
> --
> Regards,
> Binoy Dalal
>

Re: Running Solr on port 80

Posted by Binoy Dalal <bi...@gmail.com>.
Why don't you directly run solr from the script provided in {SOLR_DIST}\bin
./solr start -p 8984

On Thu, 11 Feb 2016, 12:56 Jeyaprakash Singarayar <jp...@gmail.com>
wrote:

> Hi,
>
> I'm trying to install solr 5.4.1 on CentOS. I know that while installing
> Solr as a service in the Linux we can pass -p <port number> to shift the
> app to host on that port.
>
>  ./install_solr_service.sh solr-5.4.1.tgz -p 8984 -f
>
> but still it shows as it is hosted on 8983 and not on 8984. Any idea?
>
> Waiting up to 30 seconds to see Solr running on port 8983 [/]
> Started Solr server on port 8983 (pid=33034). Happy searching!
>
> Found 1 Solr nodes:
>
> Solr process 33034 running on port 8983
> {
>   "solr_home":"/var/solr/data",
>   "version":"5.4.1 1725212 - jpountz - 2016-01-18 11:51:45",
>   "startTime":"2016-02-11T07:25:03.996Z",
>   "uptime":"0 days, 0 hours, 0 minutes, 11 seconds",
>   "memory":"68 MB (%13.9) of 490.7 MB"}
>
> Service solr installed.
>
-- 
Regards,
Binoy Dalal