虚拟机jdk(在profile.d中)配置 1.进入到profile.d配置文件 2.进入配置文件profile.d 3.创建并编辑Java.sh 输入命令 vi java.sh 编辑内容为: 4.使Java.sh生效 5.验证是否成功