Install and configure Jetty with Solr
As with all my server examples, I'll assume that we all have Debian/Ubuntu.
$ sudo apt-get install solr-jetty openjdk-6-jdkWell, that was easy. This installs everything you need, and prepares it to run on the lightweight Jetty web server.
Now update some of the default settings in
/etc/default/jetty
:NO_START=0 JETTY_HOST=0.0.0.0This allows the thing to start up, and binds it to all network ports, rather than the default
localhost
. Use an appropriate public or private IP here for production purposes.Now just fire it up:
$ sudo service jetty startVisit the default Solr admin screen for the bundled example configuration at http://your.server:8080
No one else used the package manager to install Jetty. And no one, absolutely no one, mentioned changing the listening host to 0.0.0.0 -- I guess that's something sysadmins are intuitively aware of?
Big ups, Idea Wagon