平台搭建:
mkdir /home/nari
1.Java环境
tar -xvf jdk-8u351-linux-x64.tar.gz
ln -s /home/nari/jdk1.8.0_351/ /home/nari/java
添加Java的环境变量:编辑/etc/profile
JAVA_HOME=/home/nari/java
PATH=$PATH:$JAVA_HOME/bin
#使配置修改生效!!
source /etc/profile
检查配置的修改是否生效,javac应该输出成功
标签:尝试,profile,文档,Java,tar,nari,home,搭建 From: https://www.cnblogs.com/cherishthepresent/p/16914071.html