OrderlyStats SE - Installation |
This page describes the installation process of Tomcat FREE INSTALLATION SUPPORT is available for OrderlyStats - so if you get stuck just give us a call or, write in .
Although some distributions have a Tomcat package available, we have found these tricky to install and configure, and prone to upgrade problems. You're better off downloading Tomcat directly from the Apache Software Foundation at http://tomcat.apache.org. Choose the latest Binary Distribution, or use this direct link (right-click to save). You will need version 7.0.27 or above in order to use WebSockets for the live Control Panel feed (recommended). Once you've got the file, unpack it with: Next, move Tomcat to a more convenient location with:
Now we need to create a script to start and stop Tomcat. Create a new file with: #!/bin/bash
# # Startup script for the Tomcat server # # chkconfig: - 83 53 # description: Starts and stops the Tomcat daemon. # processname: tomcat # pidfile: /var/run/tomcat.pid export JAVA_HOME=/usr/share/orderly/java #You may need to edit this line #See how we were called. exit 0 If you used a different location for your Save the file and exit, and make it executable with: Now, try starting tomcat with: If tomcat has started correctly, you should be able to see it running with: NOTE: By default Tomcat listens for web requests on port 8080. On some distributions the default port is 8180. You can change the port by editing NOTE: If your OrderlyStats server is running behind a firewall, you will need to allow traffic on port 8080, and also port 8081 (which is used for the Realtime Control Panel and Agent Bar). NOTE: If you want OrderlyStats to start automatically whenever your server is rebooted, you will have to add startup links that point to For best results, it's a good idea to restart tomcat each night when your call centre is closed. To do this, create a script with: Copy and paste in the following: #!/bin/sh
test -x /etc/init.d/orderlystatsse || exit 0 You also need to make this script executable with: As a final test, make sure you can see the Tomcat default home page by opening a browser window, and accessing http://my.ip.address:8080/ |