Created
July 27, 2012 12:54
-
-
Save sangramanand/3187774 to your computer and use it in GitHub Desktop.
Amazon Linux machine - sun jdk 1.7 & memcached installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer