Child pages
  • Installing a deployment environment on RedHat, CentOS or Amazon Linux
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

The packages will work on CentOS and RedHat Enterprise 5.x or 6.x, or Amazon Linux, with Apache httpd 2.2 or 2.4.

Installing a deployment environment on platforms that uses RPM packages is now even easier than ever.

  1. Install a JDK. You can install openjdk with Yum (yum install java-1.6.0-openjdk) or get the JDK from Oracle.
  2. Install the Yum repository of the WOCommunity like this:

    sudo curl -o /etc/yum.repos.d/wocommunity.repo https://raw.github.com/wocommunity/wonder/integration/Utilities/Linux/wocommunity.repo
  3. Once it's done, you can use Yum to install wotaskd and JavaMonitor.

    sudo yum install wotaskd; sudo yum install womonitor;
  4. To install the module for Apache httpd 2.2, run:

    sudo yum install woadaptor

    for Apache httpd 2.4:

    sudo yum install woadaptor-httpd24
  5. If SELinux is enabled on your system, wotaskd won't be reachable due to its preventing Apache from opening TCP connections. If you're comfortable with allowing Apache to connect to any TCP ports (including external hosts), you can run the following:

    sudo setsebool -P httpd_can_network_connect=1

     

    Alternatively, Steven Klassen has written a blog post (Custom SELinux Port Access) that outlines how to create and install a wotaskd SELinux module that specifically allows connections to port 1085.

And you're done! When the packages are installed, the services are started automatically. JavaMonitor will be running on port 56789. Your Project Wonder applications goes into /opt/Local/Library/WebObjects/Applications.

If you wish to restart wotaskd or Monitor, startup scripts are located in /etc/init.d. You can use the service tool to stop or restart them:

sudo /sbin/service wotaskd stop
sudo /sbin/service womonitor stop

(replace stop with restart to restart them in one step).

When Monitor is started, it will report to the console that is available at address like "ip-10-212-110-28" but that is the internal address of the Amazon server. The external address, which you must use, is available in the AWS console, and of the form "ec2-xx-vv-zz-ww.compute-1.amazonaws.com".

Don't forget to change the password in JavaMonitor after you made the installation!

  • No labels