Upgrade the java version under linux:
1. Download the corresponding version and install it;
2. After the installation is complete, execute update-alternatives --config java under the root user
3. Select and enter the jdk version number (Selection) that needs to be modified, and press Enter.