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:jpsingara...@gmail.com] 
Sent: Thursday, February 11, 2016 2:40 AM
To: solr-user@lucene.apache.org; binoydala...@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 <binoydala...@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 
> <jpsingara...@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
>

Reply via email to