yum安装java8

#YUM


## 如何使用私有yum仓库


http://stackoverflow.com/questions/22631163/installing-java-8-on-redhat-linux


http://docs.ansible.com/yum_module.html



## YUM install java
http://stackoverflow.com/questions/10268583/how-to-automate-download-and-installation-of-java-jdk-on-linux




1.download


wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.rpm -O jdk-8u20-linux-x64.rpm

2.install using yum


yum install jdk-8u20-linux-x64.rpm


## Vagrant + Ansible


aws image: ami-29950319


https://github.com/smdahlen/vagrant-digitalocean/issues/100


添加一行:


config.ssh.pty = true

你可能感兴趣的:(yum安装java8)