Installing Resin 4 on Amazon Linux 2012.03
From Resin 4.0 Wiki
Line 1: | Line 1: | ||
− | test | + | |
+ | Amazon Linux is in the Red Hat / Fedora family of Linux distributions. Many steps that work for Amazon Linux AMI 2012.03 will likely work for Red Hat, CentOS and Fedora. | ||
+ | |||
+ | Amazon Linux is CentOS forked at 5.4, and is probably closest to CentOS 6 these days, but truly a fork. | ||
+ | |||
+ | ==Fire up an Amazon Instance== | ||
+ | |||
+ | Fire up an Amazon Instance using Amazon Linux AMI 2012.03. We do not recommend a micro instance at this time. [http://aws.amazon.com/ec2/instance-types/ Use a small instance or larger ]. | ||
+ | |||
+ | Note: Resin can work with a micro instance but is suboptimal. If you decide to use micro instance, do not use them for triad servers, only elastic servers. | ||
+ | |||
+ | ==Install Resin== | ||
+ | |||
+ | Then [http://caucho.com/resin-4.0/changes/resin-4.0.24.xtp#RPM install Resin as follows using RPM]: | ||
+ | |||
+ | |||
+ | |||
+ | <code> <pre> | ||
+ | |||
+ | $ sudo rpm --import http://caucho.com/download/rpm/RPM-GPG-KEY-caucho | ||
+ | $ sudo yum install http://www.caucho.com/download/rpm/4.0.29/x86_64/resin-pro-4.0.29-1.x86_64.rpm | ||
+ | |||
+ | </pre></code> | ||
+ | |||
+ | If the above steps confuses you, make sure you go through the Amazon EC2 tutorial and then return to this step ([http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/ tutorial from Amazon WS]). | ||
+ | |||
+ | If everything went well, then Resin should be installed. You can test this as follows: | ||
+ | |||
+ | <pre> | ||
+ | $ resinctl status | ||
+ | </pre> | ||
+ | |||
+ | '''Output''' | ||
+ | |||
+ | <pre> | ||
+ | Resin/4.0.27 status for watchdog at 127.0.0.1:6600 | ||
+ | |||
+ | watchdog: | ||
+ | watchdog-pid: 1455 | ||
+ | |||
+ | server 'app-0' : ACTIVE | ||
+ | password: missing | ||
+ | watchdog-user: root | ||
+ | user: resin(resin) | ||
+ | root: /var/www | ||
+ | conf: /etc/resin/resin.xml | ||
+ | pid: 1570 | ||
+ | uptime: 0 days 00h04 | ||
+ | </pre> |
Latest revision as of 00:00, 13 August 2012
Amazon Linux is in the Red Hat / Fedora family of Linux distributions. Many steps that work for Amazon Linux AMI 2012.03 will likely work for Red Hat, CentOS and Fedora.
Amazon Linux is CentOS forked at 5.4, and is probably closest to CentOS 6 these days, but truly a fork.
[edit] Fire up an Amazon Instance
Fire up an Amazon Instance using Amazon Linux AMI 2012.03. We do not recommend a micro instance at this time. Use a small instance or larger .
Note: Resin can work with a micro instance but is suboptimal. If you decide to use micro instance, do not use them for triad servers, only elastic servers.
[edit] Install Resin
Then install Resin as follows using RPM:
$ sudo rpm --import http://caucho.com/download/rpm/RPM-GPG-KEY-caucho
$ sudo yum install http://www.caucho.com/download/rpm/4.0.29/x86_64/resin-pro-4.0.29-1.x86_64.rpm
If the above steps confuses you, make sure you go through the Amazon EC2 tutorial and then return to this step (tutorial from Amazon WS).
If everything went well, then Resin should be installed. You can test this as follows:
$ resinctl status
Output
Resin/4.0.27 status for watchdog at 127.0.0.1:6600 watchdog: watchdog-pid: 1455 server 'app-0' : ACTIVE password: missing watchdog-user: root user: resin(resin) root: /var/www conf: /etc/resin/resin.xml pid: 1570 uptime: 0 days 00h04