Wiki source code of Installing a deployment environment on RedHat, CentOS or Amazon Linux
Version 49.1 by Pascal Robert on 2013/02/21 12:16
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>>http://www.oracle.com/technetwork/java/index.html]]. | ||
| 8 | 1. Install the Yum repository of the WOCommunity like this: | ||
| 9 | |||
| 10 | {{code language="bash"}} | ||
| 11 | sudo curl -o /etc/yum.repos.d/wocommunity.repo https://raw.github.com/projectwonder/wonder/master/Utilities/Linux/wocommunity.repo | ||
| 12 | {{/code}} | ||
| 13 | |||
| 14 | 1. Once it's done, you can use Yum to install wotaskd and JavaMonitor. | ||
| 15 | |||
| 16 | {{code language="bash"}} | ||
| 17 | sudo yum install wotaskd; sudo yum install womonitor; | ||
| 18 | {{/code}} | ||
| 19 | |||
| 20 | 1. To install the module for Apache httpd 2.2, run: | ||
| 21 | |||
| 22 | {{code language="bash"}} | ||
| 23 | sudo yum install woadaptor | ||
| 24 | {{/code}} | ||
| 25 | |||
| 26 | for Apache httpd 2.4: | ||
| 27 | |||
| 28 | {{code language="bash"}} | ||
| 29 | sudo yum install woadaptor-httpd24 | ||
| 30 | {{/code}} | ||
| 31 | |||
| 32 | 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//. | ||
| 33 | |||
| 34 | 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: | ||
| 35 | |||
| 36 | {{code language="bash"}} | ||
| 37 | sudo /sbin/service wotaskd stop | ||
| 38 | sudo /sbin/service womonitor stop | ||
| 39 | |||
| 40 | {{/code}} | ||
| 41 | |||
| 42 | (replace //stop// with //restart// to restart them in one step). | ||
| 43 | |||
| 44 | 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". | ||
| 45 | |||
| 46 | {{warning}} | ||
| 47 | Don't forget to change the password in JavaMonitor after you made the installation\! | ||
| 48 | {{/warning}} |