Skip to content

Instantly share code, notes, and snippets.

@sangramanand
Created July 27, 2012 12:54
Show Gist options
  • Save sangramanand/3187774 to your computer and use it in GitHub Desktop.
Save sangramanand/3187774 to your computer and use it in GitHub Desktop.
Amazon Linux machine - sun jdk 1.7 & memcached installation
// remove open jdk by looking into its rpm
#rpm -qa
# rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-52.1.9.10.40.amzn1.x86_64
// install sun jdk 7 rpm - for updated java jdk checkout @ http://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/#more-39
# wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/7u5-b05/jdk-7u5-linux-x64.rpm"
# rpm -ivh jdk-7u5-linux-x64.rpm
//after jdk is installed successfully, install memcached.
# yum install memcached
// check memcached version
# memcached -h
#sudo chmod +x /etc/init.d/memcached
#sudo chkconfig --level 345 memcached on
#sudo service memcached start
Update “/etc/localtime” link: ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
Make the change permanent by adding the following line to the "/etc/sysconfig/clock" file: ZONE="America/New_York"
@sangramanand
Copy link
Author

For ubuntu

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment