安装Mysql
sudo apt-get install mysql-server即可
注:第一次登陆是可能出现以下错误,则按顺序输入命令即可:
ERROR 1698 (28000):Access denied for user
1.sudo mysql -uroot
2.use mysql;
3.update user set plugin='' where user='root';
4.flush privileges;
5.exit;
配置JDK环境,注意替换路径
1.配置JDK路径
export JAVA_HOME=/usr/lib/jdk1.8/jdk1.8.0_211
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
2.配置默认JDK版本
sudo update-alternatives --install /usr/bin/java java /usr/lib/jdk1.8/jdk1.8.0_211/bin/java 300
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jdk1.8/jdk1.8.0_211/bin/javac 300
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jdk1.8/jdk1.8.0_211/bin/jar 300
3.sudo update-alternatives --config javac
4.sudo update-alternatives --config java(重要)