我要评分
获取效率
正确性
完整性
易理解

Installing the BiSheng JDK

Tomcat depends on the Java environment. Install OpenJDK or BiSheng JDK based on your actual requirements. The following uses BiSheng JDK 8u422 as an example to describe how to install the BiSheng JDK.

  1. Download the BiSheng JDK binary package.

    If the server cannot access the Internet, perform the following steps to download the binary package of the BiSheng JDK to your local host and upload it to the server.

    1. Download the BiSheng JDK binary package bisheng-jdk-8u422-linux-aarch64.tar.gz.
    2. Copy the BiSheng JDK binary package to the /home directory on the server and decompress it.
      cd /home
      tar -zxvf bisheng-jdk-8u422-linux-aarch64.tar.gz

      If the server is connected to the Internet, you can run the wget command on the server to download the binary package.

      1
      2
      cd /home
      wget https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_jdk/bisheng-jdk-8u422-linux-aarch64.tar.gz --no-check-certificate
      
  2. Verify the availability of the BiSheng JDK binary file.
    cd /home/bisheng-jdk1.8.0_422/bin
    ./java -version

    If the BiSheng JDK version is returned, the BiSheng JDK has been successfully downloaded and decompressed.

  3. Configure the BiSheng JDK environment variables.
    1. Open the /etc/profile file.
      vi /etc/profile
    2. Press i to enter the insert mode and add the following content to the file:
      export JAVA_HOME=/home/bisheng-jdk1.8.0_422
      export PATH=$JAVA_HOME/bin:$PATH
      export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
      export JRE_HOME=$JAVA_HOME/jre
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Make the configuration take effect.
      source /etc/profile