Note: this one is only for RedHat Based Distros -based distros like CentOS, Feodora, Redhat and etc, as for Debian Based distros like Ubunto deb packages will be comming soonRedHat, etc. For Debian-based distros, see Debian Packages.
The steps to use RPMS are
- Obtain the Jetty RPMs. These are build and distributed with each Jetty release since 6.1.5. You can also build the jetty RPMS from source.
- Install the prerequisits RPMs and packages (eg java and ant).
- Install the Jetty RPMs.
- Configure and run
once Once your jetty6 Jetty6 rpm is installed you can deploy your webapps at /var/lib/jetty6/webapps
Starting and Stopping Jetty
The jetty Jetty start script is installed in /etc/init.d and linked to the /etc/rc3.d directory so that it is started at boot time. It can also be manually started and stopped:
sudo service jetty start
sudo service jetty stop
- jetty Jetty logs are found at /var/log/jetty6
- you can view the logs on at runtime by using tail -f, this will enable you to view the logs, on in realtime
tail -f yourjetty.log
- jetty6-lib (located at /usr/share/java/jetty6-lib) - jetty jar Jetty JAR libraries namely, jetty, jetty-util annotations, jetty-management, jetty-setuid and libsetuid.so
- /usr/share/java/jetty6-jsp-2.0-api - jsp JSP 2.0 jar JAR libraries and other libraries
- /usr/share/java/jetty6-jsp-2.1-api - jsp JSP 2.1 jar JAR libraries and other libraries
- /usr/share/java/jetty6-servlet-2.5-api - contains servlet Servlet 2.5 jar JAR library
jetty6-samples-6.1-*.noarch.rpm - Jetty Samples RPM Package