1、[/usr/local/src]# tar -zxvf jdk-8u231.tar.gz 2、# mkdir /usr/local/java 3、# mv jdk1.8.0_231 ../java/ 4、# vi /etc/profile 设置环境变量 添加: export JAVA_HOME=/usr/local/java/jdk1.8.0_231
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
执行:
source /etc/profile
使profile生效
添加软连接:(可以不用操作)
ln -s /usr/local/java/jdk1.8.0_231/bin/java /usr/bin/java
5、# java -version 检查 java是否安装成功 添加软连接:(可以不用操作)
ln -s /usr/local/java/jdk1.8.0_231/bin/java /usr/bin/java
微信及支付宝安全校验产检 local_policy.jar和US_export_policy.jar
所在目录 /usr/local/java/jdk1.8.0_231/jre/lib/security/
scp ./*.jar root@
0 Comments
Leave a comment