how to use aws elasticache inside an ec2 instance code example
Example 1: how to configure httpd in amazon ec2 instance
[ec2-user ~]$ sudo service httpd start
Example 2: keep ec2 instance connected on command line
echo 'ClientAliveInterval 60' | sudo tee --append /etc/ssh/sshd_config
sudo service sshd restart