Wiki source code of Installing a deployment environment on RedHat, CentOS or Amazon Linux
Version 52.1 by droy on 2013/10/20 09:30
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{info}} | ||
| 2 | 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. | ||
| 3 | {{/info}} | ||
| 4 | |||
| 5 | Installing a deployment environment on platforms that uses RPM packages is now even easier than ever. | ||
| 6 | |||
| 7 | 1. Install a JDK. You can install openjdk with Yum (//yum install java-1.6.0-openjdk//) or get the JDK from [[Oracle>>url:http://www.oracle.com/technetwork/java/index.html||shape="rect"]]. | ||
| 8 | 1. ((( | ||
| 9 | Install the Yum repository of the WOCommunity like this: | ||
| 10 | |||
| 11 | {{code language="bash"}} | ||
| 12 | sudo curl -o /etc/yum.repos.d/wocommunity.repo https://raw.github.com/wocommunity/wonder/master/Utilities/Linux/wocommunity.repo | ||
| 13 | {{/code}} | ||
| 14 | ))) | ||
| 15 | 1. ((( | ||
| 16 | Once it's done, you can use Yum to install wotaskd and JavaMonitor. | ||
| 17 | |||
| 18 | {{code language="bash"}} | ||
| 19 | sudo yum install wotaskd; sudo yum install womonitor; | ||
| 20 | {{/code}} | ||
| 21 | ))) | ||
| 22 | 1. ((( | ||
| 23 | To install the module for Apache httpd 2.2, run: | ||
| 24 | |||
| 25 | {{code language="bash"}} | ||
| 26 | sudo yum install woadaptor | ||
| 27 | {{/code}} | ||
| 28 | |||
| 29 | for Apache httpd 2.4: | ||
| 30 | |||
| 31 | {{code language="bash"}} | ||
| 32 | sudo yum install woadaptor-httpd24 | ||
| 33 | {{/code}} | ||
| 34 | ))) | ||
| 35 | 1. ((( | ||
| 36 | 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: | ||
| 37 | |||
| 38 | {{code language="bash"}} | ||
| 39 | sudo setsebool -P httpd_can_network_connect=1 | ||
| 40 | {{/code}} | ||
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | Alternatively, [[Steven Klassen>>url:http://www.mrxinu.com/||rel="nofollow" shape="rect" class="external-link"]] has written a blog post ([[Custom SELinux Port Access>>url:http://www.mrxinu.com/2013/06/07/custom-selinux-port-access/||rel="nofollow" shape="rect" class="external-link"]]) that outlines how to create and install a wotaskd SELinux module that specifically allows connections to port 1085. | ||
| 45 | ))) | ||
| 46 | |||
| 47 | 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//. | ||
| 48 | |||
| 49 | 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: | ||
| 50 | |||
| 51 | {{code language="bash"}} | ||
| 52 | sudo /sbin/service wotaskd stop | ||
| 53 | sudo /sbin/service womonitor stop | ||
| 54 | |||
| 55 | {{/code}} | ||
| 56 | |||
| 57 | (replace //stop// with //restart// to restart them in one step). | ||
| 58 | |||
| 59 | 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". | ||
| 60 | |||
| 61 | {{warning}} | ||
| 62 | Don't forget to change the password in JavaMonitor after you made the installation! | ||
| 63 | {{/warning}} |