CentOS 安装java

[b]一[/b],自己安装系统忘记用自带的功能安装jdk了,只能自己手动安装了.
1.1 jdk安装指南 java官网
[url]http://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html[/url]
1.2 jdk下载地址
[url]http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html[/url]
1.3 使用winscp工具将下载的jdk传输至/usr/java/下面我自己创建的文件夹
[img]http://dl2.iteye.com/upload/attachment/0107/3042/1e40b92f-1828-33b6-b57e-7a4146aa856b.jpg[/img]
1.3 centos页面查看到的 java命令
[img]http://dl2.iteye.com/upload/attachment/0107/3012/312bc05d-cea2-3608-927c-3aa40af1955c.png[/img]
1.4 使用securecrt进行java安装

tar zxvf jdk-8u40-linux-x64.tar.gz //解压文件

[img]http://dl2.iteye.com/upload/attachment/0107/3057/d3475ad1-75cb-3db4-95ed-90b51938cd7f.png[/img]
1.5配置环境变量
去/etc/profile 修改profile文件在后面追加
[img]http://dl2.iteye.com/upload/attachment/0107/3063/be26fe12-59d8-3c4c-b592-1e117e1c897e.png[/img]
1.6 securiCRT乱码问题解决,修改下面俩处地方就可以了
[img]http://dl2.iteye.com/upload/attachment/0107/3067/79a81207-2e58-36e7-a275-864c02cf9381.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0107/3069/7212c460-61b4-33ff-ae3a-7b20d37c6815.png[/img]

你可能感兴趣的:(linux,java,centos)