diff --git a/ISSUE_TEMPLATE/bug.yml b/.gitee/ISSUE_TEMPLATE/bug.yml similarity index 96% rename from ISSUE_TEMPLATE/bug.yml rename to .gitee/ISSUE_TEMPLATE/bug.yml index c67637cfac5e2ee176c5c0c3c1a1d06ed0f65253..6f61ca4579b8d4ffce4bee32e1165d908bf4a9e2 100644 --- a/ISSUE_TEMPLATE/bug.yml +++ b/.gitee/ISSUE_TEMPLATE/bug.yml @@ -1,54 +1,54 @@ -name: Bug 反馈 -description: 当你在代码中发现了一个 Bug,导致应用崩溃或抛出异常,或者有一个组件存在问题,或者某些地方看起来不对劲。 -title: "[Bug]: " -labels: ["bug"] -body: - - type: markdown - attributes: - value: | - 感谢对项目的支持与关注。在提出问题之前,请确保你已查看相关开发或使用文档: - - https://... - - type: checkboxes - attributes: - label: 这个问题是否已经存在? - options: - - label: 我已经搜索过现有的问题 (https://gitee.com/../../issues) - required: true - - type: textarea - attributes: - label: 如何复现 - description: 请详细告诉我们如何复现你遇到的问题,如涉及代码,可提供一个最小代码示例,并使用反引号```附上它 - placeholder: | - 1. ... - 2. ... - 3. ... - validations: - required: true - - type: textarea - attributes: - label: 预期结果 - description: 请告诉我们你预期会发生什么。 - validations: - required: true - - type: textarea - attributes: - label: 实际结果 - description: 请告诉我们实际发生了什么。 - validations: - required: true - - type: textarea - attributes: - label: 截图或视频 - description: 如果可以的话,上传任何关于 bug 的截图。 - value: | - [在这里上传图片] - - type: dropdown - id: version - attributes: - label: 版本 - description: 你当前正在使用我们软件的哪个版本/分支? - options: - - 1.0.2 (默认) - - 1.0.3 (最新) - validations: +name: Bug 反馈 +description: 当你在代码中发现了一个 Bug,导致应用崩溃或抛出异常,或者有一个组件存在问题,或者某些地方看起来不对劲。 +title: "[Bug]: " +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + 感谢对项目的支持与关注。在提出问题之前,请确保你已查看相关开发或使用文档: + - https://... + - type: checkboxes + attributes: + label: 这个问题是否已经存在? + options: + - label: 我已经搜索过现有的问题 (https://gitee.com/../../issues) + required: true + - type: textarea + attributes: + label: 如何复现 + description: 请详细告诉我们如何复现你遇到的问题,如涉及代码,可提供一个最小代码示例,并使用反引号```附上它 + placeholder: | + 1. ... + 2. ... + 3. ... + validations: + required: true + - type: textarea + attributes: + label: 预期结果 + description: 请告诉我们你预期会发生什么。 + validations: + required: true + - type: textarea + attributes: + label: 实际结果 + description: 请告诉我们实际发生了什么。 + validations: + required: true + - type: textarea + attributes: + label: 截图或视频 + description: 如果可以的话,上传任何关于 bug 的截图。 + value: | + [在这里上传图片] + - type: dropdown + id: version + attributes: + label: 版本 + description: 你当前正在使用我们软件的哪个版本/分支? + options: + - 1.0.2 (默认) + - 1.0.3 (最新) + validations: required: true \ No newline at end of file diff --git a/ISSUE_TEMPLATE/feature.yml b/.gitee/ISSUE_TEMPLATE/feature.yml similarity index 97% rename from ISSUE_TEMPLATE/feature.yml rename to .gitee/ISSUE_TEMPLATE/feature.yml index 0f74bddad77514250eee2188a9dad3a0e757ce90..4d7f037eb4f34a1f632bc04be6ff8adb1b6c68fc 100644 --- a/ISSUE_TEMPLATE/feature.yml +++ b/.gitee/ISSUE_TEMPLATE/feature.yml @@ -1,43 +1,43 @@ -name: 功能建议 -description: 对本项目提出一个功能建议 -title: "[功能建议]: " -labels: ["enhancement"] -body: - - type: markdown - attributes: - value: | - 感谢提出功能建议,我们将仔细考虑! - - type: textarea - id: related-problem - attributes: - label: 你的功能建议是否和某个问题相关? - description: 清晰并简洁地描述问题是什么,例如,当我...时,我总是感到困扰。 - validations: - required: false - - type: textarea - id: desired-solution - attributes: - label: 你希望看到什么解决方案? - description: 清晰并简洁地描述你希望发生的事情。 - validations: - required: true - - type: textarea - id: alternatives - attributes: - label: 你考虑过哪些替代方案? - description: 清晰并简洁地描述你考虑过的任何替代解决方案或功能。 - validations: - required: false - - type: textarea - id: additional-context - attributes: - label: 你有其他上下文或截图吗? - description: 在此处添加有关功能请求的任何其他上下文或截图。 - validations: - required: false - - type: checkboxes - attributes: - label: 意向参与贡献 - options: - - label: 我有意向参与具体功能的开发实现并将代码贡献回到上游社区 +name: 功能建议 +description: 对本项目提出一个功能建议 +title: "[功能建议]: " +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + 感谢提出功能建议,我们将仔细考虑! + - type: textarea + id: related-problem + attributes: + label: 你的功能建议是否和某个问题相关? + description: 清晰并简洁地描述问题是什么,例如,当我...时,我总是感到困扰。 + validations: + required: false + - type: textarea + id: desired-solution + attributes: + label: 你希望看到什么解决方案? + description: 清晰并简洁地描述你希望发生的事情。 + validations: + required: true + - type: textarea + id: alternatives + attributes: + label: 你考虑过哪些替代方案? + description: 清晰并简洁地描述你考虑过的任何替代解决方案或功能。 + validations: + required: false + - type: textarea + id: additional-context + attributes: + label: 你有其他上下文或截图吗? + description: 在此处添加有关功能请求的任何其他上下文或截图。 + validations: + required: false + - type: checkboxes + attributes: + label: 意向参与贡献 + options: + - label: 我有意向参与具体功能的开发实现并将代码贡献回到上游社区 required: false \ No newline at end of file diff --git a/build.sh b/build.sh index b6378db31da5ff9fe33fb5dd473d63f36b98e5ca..e1ab6a2fd2bed07350f8c879b3db9ffde5d071d3 100644 --- a/build.sh +++ b/build.sh @@ -17,3 +17,8 @@ pyinstaller -F ./src/devkitpipeline.py -p ./ cp $current_dir/tools/install_dependency/config/machine.yaml $current_dir/tools/install_dependency/dist/machine.yaml cp -rf $current_dir/component $current_dir/tools/install_dependency/dist/ cp $current_dir/tools/download_dependency/dist/download $current_dir/tools/install_dependency/dist/ + +mkdir -p $current_dir/tools/install_dependency/v1.0/tools/ +cp -rf $current_dir/tools/install_dependency/dist/ $current_dir/tools/install_dependency/v1.0/tools/linux +cd $current_dir/tools/install_dependency/v1.0/ +tar -zcvf v1.0.tar.gz tools diff --git a/component/BiShengCompiler/check_install_result.sh b/component/BiShengCompiler/check_install_result.sh index 802f67fe5a646709dcea4e7a4db9c764270ef282..35c1d5b4400dbf52ecd834c36fa0250c4b8dbe11 100644 --- a/component/BiShengCompiler/check_install_result.sh +++ b/component/BiShengCompiler/check_install_result.sh @@ -1,7 +1,7 @@ #!/bin/bash clang_path=$(which clang) -if [[ ${clang_path} == ${HOME}/compilers/BiShengCompiler-3.2.0-aarch64-linux/bin/clang ]]; then +if [[ ${clang_path} == ${HOME}/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang ]]; then echo "true" else echo "false" diff --git a/component/BiShengCompiler/install.sh b/component/BiShengCompiler/install.sh index cff4bf596c65adbe194755e86ce0fc01d08cb511..3990cddc4fd742f1281899b2633bdf97e9156826 100644 --- a/component/BiShengCompiler/install.sh +++ b/component/BiShengCompiler/install.sh @@ -3,22 +3,22 @@ cd /tmp/devkitdependencies/ verify_signature=$(sha256sum -c BiShengCompiler-3.2.0-aarch64-linux.tar.gz.sha256 >/dev/null 2>&1; echo $?) if [[ ${verify_signature} -eq "0" ]]; then - if [[ ! -d ${HOME}/compilers/BiShengCompiler-3.2.0-aarch64-linux ]]; then - mkdir -p ${HOME}/compilers + if [[ ! -d ${HOME}/.local/BiShengCompiler-3.2.0-aarch64-linux ]]; then + mkdir -p ${HOME}/.local - echo "Decompress BiShengCompiler-3.2.0-aarch64-linux.tar.gz to ${HOME}/compilers." - tar -zxf /tmp/devkitdependencies/BiShengCompiler-3.2.0-aarch64-linux.tar.gz -C ${HOME}/compilers - echo "Decompress BiShengCompiler-3.2.0-aarch64-linux.tar.gz to ${HOME}/compilers finished." + echo "Decompress BiShengCompiler-3.2.0-aarch64-linux.tar.gz to ${HOME}/.local" + tar -zxf /tmp/devkitdependencies/BiShengCompiler-3.2.0-aarch64-linux.tar.gz -C ${HOME}/.local + echo "Decompress BiShengCompiler-3.2.0-aarch64-linux.tar.gz to ${HOME}/.local finished." fi clang_path=$(which clang) - if [[ ${clang_path} != ${HOME}/compilers/BiShengCompiler-3.2.0-aarch64-linux/bin/clang ]]; then - sed -i '/#*export BISHENG_COMPILER_HOME=${HOME}\/compilers/d' ${HOME}/.bashrc + if [[ ${clang_path} != ${HOME}/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang ]]; then + sed -i '/#*export BISHENG_COMPILER_HOME=${HOME}\/.local/d' ${HOME}/.bashrc sed -i '/#*export PATH=${BISHENG_COMPILER_HOME}:${PATH}/d' ${HOME}/.bashrc echo "change ${HOME}/.bashrc" cat >> ${HOME}/.bashrc <<'EOF' -export BISHENG_COMPILER_HOME=${HOME}/compilers/BiShengCompiler-3.2.0-aarch64-linux/bin +export BISHENG_COMPILER_HOME=${HOME}/.local/BiShengCompiler-3.2.0-aarch64-linux/bin export PATH=${BISHENG_COMPILER_HOME}:${PATH} EOF echo "source ${HOME}/.bashrc" diff --git a/component/BiShengJDK17/check_install_result.sh b/component/BiShengJDK17/check_install_result.sh index 7bf72523c0d465b93a8fcfdbb8fc54f4c22e3c82..77ccfcd767ecce29d58c3d1690890e9ed932f277 100644 --- a/component/BiShengJDK17/check_install_result.sh +++ b/component/BiShengJDK17/check_install_result.sh @@ -1,9 +1,6 @@ #!/bin/bash -#java_path=$(which java) -#if [[ ${java_path} == ${HOME}/compilers/bisheng-jdk-17.0.10/bin/java ]]; then - -if [[ -f ${HOME}/compilers/bisheng-jdk-17.0.10/bin/java ]]; then +if [[ -f ${HOME}/.local/bisheng-jdk-17.0.10/bin/java ]]; then echo "true" else echo "false" diff --git a/component/BiShengJDK17/install.sh b/component/BiShengJDK17/install.sh index c1ad1b866a8d035f8f7da27386326e65b2b89d2e..4ce48135ee541bdcc7d844e69a2e98f947e5aecd 100644 --- a/component/BiShengJDK17/install.sh +++ b/component/BiShengJDK17/install.sh @@ -3,19 +3,19 @@ cd /tmp/devkitdependencies/ verify_signature=$(sha256sum -c bisheng-jdk-17.0.10-linux-aarch64.tar.gz.sha256 >/dev/null 2>&1; echo $?) if [[ ${verify_signature} -eq "0" ]]; then - if [[ ! -d ${HOME}/compilers/bisheng-jdk-17.0.10 ]]; then - mkdir -p ${HOME}/compilers + if [[ ! -d ${HOME}/.local/bisheng-jdk-17.0.10 ]]; then + mkdir -p ${HOME}/.local - echo "Decompress bisheng-jdk-17.0.10-linux-aarch64.tar.gz to ${HOME}/compilers." - tar -zxf /tmp/devkitdependencies/bisheng-jdk-17.0.10-linux-aarch64.tar.gz -C ${HOME}/compilers - echo "Decompress bisheng-jdk-17.0.10-linux-aarch64.tar.gz to ${HOME}/compilers finished." + echo "Decompress bisheng-jdk-17.0.10-linux-aarch64.tar.gz to ${HOME}/.local" + tar -zxf /tmp/devkitdependencies/bisheng-jdk-17.0.10-linux-aarch64.tar.gz -C ${HOME}/.local + echo "Decompress bisheng-jdk-17.0.10-linux-aarch64.tar.gz to ${HOME}/.local finished." fi java_path=$(which java) - if [[ ${java_path} != ${HOME}/compilers/bisheng-jdk-17.0.10/bin/java ]]; then + if [[ ${java_path} != ${HOME}/.local/bisheng-jdk-17.0.10/bin/java ]]; then # 配置alternatives echo "do update-alternatives install something to /usr/bin/" - for BinFilePath in ${HOME}/compilers/bisheng-jdk-17.0.10/bin/*; do + for BinFilePath in ${HOME}/.local/bisheng-jdk-17.0.10/bin/*; do if [[ -x ${BinFilePath} ]]; then BinFileName=$(basename ${BinFilePath}) sudo update-alternatives --install /usr/bin/${BinFileName} ${BinFileName} ${BinFilePath} 50 diff --git a/component/BiShengJDK8/check_install_result.sh b/component/BiShengJDK8/check_install_result.sh index f3f7e3ee3438620528323e3ddd4111c8f46e1a51..0c83b79f02501abed27592f567c2d97f296a9296 100644 --- a/component/BiShengJDK8/check_install_result.sh +++ b/component/BiShengJDK8/check_install_result.sh @@ -1,9 +1,6 @@ #!/bin/bash -#java_path=$(which java) -#if [[ ${java_path} == ${HOME}/compilers/bisheng-jdk1.8.0_402/bin/java ]]; then - -if [[ -f ${HOME}/compilers/bisheng-jdk1.8.0_402/bin/java ]]; then +if [[ -f ${HOME}/.local/bisheng-jdk1.8.0_402/bin/java ]]; then echo "true" else echo "false" diff --git a/component/BiShengJDK8/install.sh b/component/BiShengJDK8/install.sh index 0b4b976d8141c9ce7646f486b518805dbcaeed38..e17caf66f591f637b900aa146fed8cdc8bc8e87e 100644 --- a/component/BiShengJDK8/install.sh +++ b/component/BiShengJDK8/install.sh @@ -3,19 +3,19 @@ cd /tmp/devkitdependencies/ verify_signature=$(sha256sum -c bisheng-jdk-8u402-linux-aarch64.tar.gz.sha256 >/dev/null 2>&1; echo $?) if [[ ${verify_signature} -eq "0" ]]; then - if [[ ! -d ${HOME}/compilers/bisheng-jdk1.8.0_402 ]]; then - mkdir -p ${HOME}/compilers + if [[ ! -d ${HOME}/.local/bisheng-jdk1.8.0_402 ]]; then + mkdir -p ${HOME}/.local - echo "Decompress bisheng-jdk-8u402-linux-aarch64.tar.gz to ${HOME}/compilers." - tar -zxf /tmp/devkitdependencies/bisheng-jdk-8u402-linux-aarch64.tar.gz -C ${HOME}/compilers - echo "Decompress bisheng-jdk-8u402-linux-aarch64.tar.gz to ${HOME}/compilers finished." + echo "Decompress bisheng-jdk-8u402-linux-aarch64.tar.gz to ${HOME}/.local" + tar -zxf /tmp/devkitdependencies/bisheng-jdk-8u402-linux-aarch64.tar.gz -C ${HOME}/.local + echo "Decompress bisheng-jdk-8u402-linux-aarch64.tar.gz to ${HOME}/.local finished." fi java_path=$(which java) - if [[ ${java_path} != ${HOME}/compilers/bisheng-jdk1.8.0_402/bin/java ]]; then + if [[ ${java_path} != ${HOME}/.local/bisheng-jdk1.8.0_402/bin/java ]]; then # 配置alternatives echo "do update-alternatives install something to /usr/bin/" - for BinFilePath in ${HOME}/compilers/bisheng-jdk1.8.0_402/bin/*; do + for BinFilePath in ${HOME}/.local/bisheng-jdk1.8.0_402/bin/*; do if [[ -x ${BinFilePath} ]]; then BinFileName=$(basename ${BinFilePath}) sudo update-alternatives --install /usr/bin/${BinFileName} ${BinFileName} ${BinFilePath} 100 diff --git a/component/GCCforOpenEuler/check_install_result.sh b/component/GCCforOpenEuler/check_install_result.sh index 54c8f219791967a3d8ebef8ec5c849f1fa4499ad..a142ad3f8c1a207b7a8e4c1591ec800c97c8c746 100644 --- a/component/GCCforOpenEuler/check_install_result.sh +++ b/component/GCCforOpenEuler/check_install_result.sh @@ -1,7 +1,7 @@ #!/bin/bash gcc_path=$(which gcc) -if [[ ${gcc_path} == ${HOME}/compilers/gcc-10.3.1-2023.12-aarch64-linux/bin/gcc ]]; then +if [[ ${gcc_path} == ${HOME}/.local/gcc-10.3.1-2023.12-aarch64-linux/bin/gcc ]]; then echo "true" else echo "false" diff --git a/component/GCCforOpenEuler/install.sh b/component/GCCforOpenEuler/install.sh index 03bf6a9e08836b6534fcdcfb3e9300bab0245776..70ca281e6f5f04fb077d158e7c2fa33e89325a3a 100644 --- a/component/GCCforOpenEuler/install.sh +++ b/component/GCCforOpenEuler/install.sh @@ -3,22 +3,22 @@ cd /tmp/devkitdependencies/ verify_signature=$(sha256sum -c gcc-10.3.1-2023.12-aarch64-linux.tar.gz.sha256 >/dev/null 2>&1; echo $?) if [[ ${verify_signature} -eq "0" ]]; then - if [[ ! -d ${HOME}/compilers/gcc-10.3.1-2023.12-aarch64-linux ]]; then - mkdir -p ${HOME}/compilers + if [[ ! -d ${HOME}/.local/gcc-10.3.1-2023.12-aarch64-linux ]]; then + mkdir -p ${HOME}/.local - echo "Decompress gcc-10.3.1-2023.12-aarch64-linux.tar.gz to ${HOME}/compilers." - tar -zxf /tmp/devkitdependencies/gcc-10.3.1-2023.12-aarch64-linux.tar.gz -C ${HOME}/compilers - echo "Decompress gcc-10.3.1-2023.12-aarch64-linux.tar.gz to ${HOME}/compilers finished." + echo "Decompress gcc-10.3.1-2023.12-aarch64-linux.tar.gz to ${HOME}/.local" + tar -zxf /tmp/devkitdependencies/gcc-10.3.1-2023.12-aarch64-linux.tar.gz -C ${HOME}/.local + echo "Decompress gcc-10.3.1-2023.12-aarch64-linux.tar.gz to ${HOME}/.local finished." fi gcc_path=$(which gcc) - if [[ ${gcc_path} != ${HOME}/compilers/gcc-10.3.1-2023.12-aarch64-linux/bin/gcc ]]; then - sed -i '/#*export GCC_HOME=${HOME}\/compilers/d' ${HOME}/.bashrc + if [[ ${gcc_path} != ${HOME}/.local/gcc-10.3.1-2023.12-aarch64-linux/bin/gcc ]]; then + sed -i '/#*export GCC_HOME=${HOME}\/.local/d' ${HOME}/.bashrc sed -i '/#*export PATH=${GCC_HOME}:${PATH}/d' ${HOME}/.bashrc echo "change ${HOME}/.bashrc" cat >> ${HOME}/.bashrc <<'EOF' -export GCC_HOME=${HOME}/compilers/gcc-10.3.1-2023.12-aarch64-linux/bin +export GCC_HOME=${HOME}/.local/gcc-10.3.1-2023.12-aarch64-linux/bin export PATH=${GCC_HOME}:${PATH} EOF echo "source ${HOME}/.bashrc" diff --git "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline.md" "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline.md" index 5f4ee90f9b817354af6801c56bf0b5dcba4187a7..3efdaa78e746490ba225f5b2118f57cc57c8a0a0 100644 --- "a/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline.md" +++ "b/document/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267/\346\211\271\351\207\217\351\203\250\347\275\262\345\267\245\345\205\267devkitpipeline.md" @@ -132,14 +132,14 @@ BiShengJDK8 和 BiShengJDK17 均使用 `update-alternatives` 工具进行配置 ## 部署结果 -批量部署工具将各组件安装至用户家目录下的compilers文件夹下(后续会考虑将该文件夹更名为 .local,在用户家目录下隐藏该文件夹)。 +批量部署工具将各组件安装至用户家目录下的.local文件夹下。 #### GCCforOpenEuler 安装结果 -批量部署工具将`GCCforOpenEuler`安装包解压至用户家目录下的compilers文件夹下,并在用户的 `~/.bashrc` 文件中新增如下两行命令。用户重新登录服务器后即可查询当前环境所用`gcc`版本。 +批量部署工具将`GCCforOpenEuler`安装包解压至用户家目录下的.local文件夹下,并在用户的 `~/.bashrc` 文件中新增如下两行命令。用户重新登录服务器后即可查询当前环境所用`gcc`版本。 ```shell -export GCC_HOME=${HOME}/compilers/gcc-10.3.1-2023.12-aarch64-linux/bin +export GCC_HOME=${HOME}/.local/gcc-10.3.1-2023.12-aarch64-linux/bin export PATH=${GCC_HOME}:${PATH} ``` @@ -147,10 +147,10 @@ export PATH=${GCC_HOME}:${PATH} #### BiShengCompiler安装结果 -批量部署工具将`BiShengCompiler`安装包解压至用户家目录下的compilers文件夹下,并在用户的 `~/.bashrc` 文件中新增如下两行命令。用户重新登录服务器后即可查询当前环境所用`clang`版本。 +批量部署工具将`BiShengCompiler`安装包解压至用户家目录下的.local文件夹下,并在用户的 `~/.bashrc` 文件中新增如下两行命令。用户重新登录服务器后即可查询当前环境所用`clang`版本。 ```shell -export BISHENG_COMPILER_HOME=${HOME}/compilers/BiShengCompiler-3.2.0-aarch64-linux/bin +export BISHENG_COMPILER_HOME=${HOME}/.local/BiShengCompiler-3.2.0-aarch64-linux/bin export PATH=${BISHENG_COMPILER_HOME}:${PATH} ``` @@ -158,7 +158,7 @@ export PATH=${BISHENG_COMPILER_HOME}:${PATH} #### BiShengJDK8安装结果 -批量部署工具将`BiShengJDK8`安装包解压至用户家目录下的compilers文件夹下,并使用`alternatives`中`install`命令配置java版本。用户重新登录服务器后即可使用如下命令查询或更改当前环境所用`java`版本。 +批量部署工具将`BiShengJDK8`安装包解压至用户家目录下的.local文件夹下,并使用`alternatives`中`install`命令配置java版本。用户重新登录服务器后即可使用如下命令查询或更改当前环境所用`java`版本。 ```shell update-alternatives --config java @@ -172,7 +172,7 @@ java -version #### BiShengJDK17安装结果 -批量部署工具将`BiShengJDK17`安装包解压至用户家目录下的compilers文件夹下,并使用`alternatives`中`install`命令配置java版本。用户重新登录服务器后即可使用如下命令查询或更改当前环境所用`java`版本。 +批量部署工具将`BiShengJDK17`安装包解压至用户家目录下的.local文件夹下,并使用`alternatives`中`install`命令配置java版本。用户重新登录服务器后即可使用如下命令查询或更改当前环境所用`java`版本。 ```shell update-alternatives --config java