标签:source 代码 系统版本 定义 oca x64 修改 就是 lse
cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)cat /proc/version
Linux version 3.10.0-862.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018rpm -qa | grep jdk
rpm -e java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 --nodeps
lrwxrwxrwx. 1 root root 16 Jan 7 2019 default -> /usr/java/latest
drwxr-xr-x. 8 root root 258 Jan 7 2019 jdk1.8.0_191-amd64
lrwxrwxrwx. 1 root root 28 Jan 7 2019 latest -> /usr/java/jdk1.8.0_191-amd64
echo "export JAVA_HOME=/usr/java//usr/java/jdk1.8.0_191-amd64" > /etc/profile.d/java.sh
echo "PATH=$PATH:$JAVA_HOME/bin" >> /etc/profile.d/java
for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; do
if [ -r "$i" ]; then
if [ "${-#*i}" != "$-" ]; then
. "$i"
else
. "$i" >/dev/null
fi
fi
done
标签:source 代码 系统版本 定义 oca x64 修改 就是 lse
原文地址:https://www.cnblogs.com/person3/p/11718173.html