大家好,我是「Bigder」~
1、Linux下启动Tomcat
「sh /root/apache-tomcat-8.5.78/bin/startup.sh」
2、尝试定位
查看启动日志:
「tail -f /root/apache-tomcat-8.5.78/logs/catalina.out」
出现提示:
/root/apache-tomcat-8.5.78/bin/catalina.sh: line 504: /root/jdk-18/jre/bin/java: No such file or directory
3、检查/root/jdk-18目录的确没有jre目录存在
4、解决方法
「vi /etc/profile」找到JRE_HOME=${JAVA_HOME}/jre去掉「/jre」生效配置「source profile」