yum install java-1.6.0-openjdk* 安装所有openjdk的包,jre,jdk,docs等 update-alternatives --config java 设置默认jre