On 5/31/2016 2:02 PM, Teague James wrote: > Hello, I am trying to install Solr 6.0.0 and have been successful with > the default installation, following the instructions provided on the > Apache Solr website. However, I do not want Solr running on port 8983, > I want it to run on port 80. I started a new Ubuntu 14.04 VM, > installed open JDK 8, then installed Solr with the following commands: > Command: tar xzf solr-6.0.0.tgz solr-6.0.0/bin/install_solr_service.sh > --strip-components=2 Response: None, which is good. Command: > ./install_solr_service.sh solr-6.0.0.tgz -p 80 Response: Misplaced or > Unknown flag -p So I tried... Command: ./install_solr_service.sh > solr-6.0.0.tgz -i /opt -d /var/solr -u solr -s solr -p 80 Response: A > dump of the log, which is INFO only with no errors or warnings, at the > top of which is "Solr process 4831 from /var/solr/solr-80.pid not > found" If I look in the /var/solr directory I find a file called > solr-80.pid, but nothing else. What did I miss? Previous versions of > Solr, which I deployed with Tomcat instead of Jetty, allowed me to > control this in the server.xml file in /etc/tomcat7/, but obviously > this no longer applies. I like the ease of the installation script; I > just want to be able to control the port assignment. Any help is > appreciated! Thanks!
The port can be changed after install, although I have been also able to change the port during install with the -p parameter. Check /etc/default/solr.in.sh and look for a line setting SOLR_PORT. On my dev server, it looks like this: SOLR_PORT=8982 Before making any changes in that file, make sure that Solr is not running at all, or you may be forced to manually kill it. Thanks, Shawn