Linux 的jdk安装
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214306751-1229444699.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214307220-551724243.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308595-632830020.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214307220-551724243.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214306751-1229444699.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308595-632830020.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308595-632830020.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214307220-551724243.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308595-632830020.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214306751-1229444699.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214306751-1229444699.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214306751-1229444699.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214306751-1229444699.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308595-632830020.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308595-632830020.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214307220-551724243.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214306751-1229444699.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214307220-551724243.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214306751-1229444699.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214307220-551724243.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308595-632830020.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214307220-551724243.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308595-632830020.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214307220-551724243.png)
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308064-2021419932.png)
jdk安装
yum install lrzsz -y
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214308923-2098586217.png)
1 上传:rz
2 解压:rpm -ivh jdk-7u67-linux-x64.rpm
3 配置环境变量:
vi /etc/profile
export JAVA_HOMR=/usr/java/jdk1.7.0_67
export PATH=$PATH:%JAVA_HOME%/bin
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214309501-196410521.png)
4 配置文件生效
source /etc/profile
5 测试
java -version
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214310189-1207264145.jpg)
java
![](https://images2015.cnblogs.com/blog/1093657/201704/1093657-20170415214311111-2009755385.jpg)