标签:比较 避免 date apt ora reference tps usr tail
目前JDK如果版本不一致可能会导致无法预料的错误,这是无法避免的,ubuntu的JDK 安装比较方便
sudo apt-get update
sudo apt-get install openjdk-8-jdk
如果安装oracle-jdk
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
关于具体openjdk sunjdk区别:
OpenJDK和SunJDK有啥区别? - Aloys寒风的回答 - 知乎
https://www.zhihu.com/question/19646618/answer/40621705
$ sudo apt-get update
$ sudo apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e 'java-common' | xargs sudo apt-get -y remove
$ sudo apt-get -y autoremove
清除配置信息:
$ dpkg -l | grep ^rc | awk '{print($2)}' | xargs sudo apt-get -y purge
清除java配置及缓存:
$ bash -c 'ls -d /home/*/.java' | xargs sudo rm -rf
手动清除JVMs:
$ sudo rm -rf /usr/lib/jvm/*
reference:
https://www.cnblogs.com/a2211009/p/4265225.html
https://blog.csdn.net/swuteresa/article/details/13335481
https://www.zhihu.com/question/19646618
标签:比较 避免 date apt ora reference tps usr tail
原文地址:https://www.cnblogs.com/fourous/p/11381200.html