1.官网下载server jdk 2.修改 ( vi /etc/profile ) 文件 3. 退出编辑后执行 ./etc/profile 让配置生效 4,java -version 即可看见java配置信息