ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 一、将软件命令加入到路径中 ``` vi ~/.bashrc export PATH=你要增加的命令路径:$PATH source ~/.bashrc ``` ## 二、安装jdk ``` wget https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz ``` ### 国内镜像站下载 ``` wget https://mirrors.tuna.tsinghua.edu.cn/AdoptOpenJDK/17/jdk/x64/linux/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz ``` ``` tar -zxvf openjdk-17.0.2_linux-x64_bin.tar.gz ``` 配置环境: ``` vi ~/.bashrc ``` ``` export JAVA_HOME=/usr/lib/app/jdk export CLASSPATH=.:${JAVA_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH ``` ``` source ~/.bashrc ``` ## 三、安装tomcat ``` wget https://mirrors.bfsu.edu.cn/apache/tomcat/tomcat-9/v9.0.52/bin/apache-tomcat-9.0.52.tar.gz ``` ``` tar -zvxf apache-tomcat-9.0.52.tar.gz ```