美文网首页
Linux Tomcat started.实际上没有启动成功

Linux Tomcat started.实际上没有启动成功

作者: Bigder | 来源:发表于2022-04-08 22:33 被阅读0次

大家好,我是「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」

5、再次启动

查看启动日志:

「tail -f  /root/apache-tomcat-8.5.78/logs/catalina.out」

6、查看Tomcat占用的9090端口(默认是:8080端口,我改成了9090)

「netstat -an|grep 9090」

7、查看Tomcat的进程

「ps -ef|grep tomcat」

It's ok

以上,

Bigder

推荐阅读

Linux安装JDK-java: command not found&cannot execute binary file

小改动当天转测就要上线,要不要写用例?

测试环境,如何维护才最高效的?

Showcase通过了才算正式提测

轮流测试一个项目、出现bug到底是谁的责任

外包去还是不去

Linux性能压测命令用ab- command not found、plugins: fastestmirror

已经很努力,但上司总让我提升能力,还数落我拖后腿,怎么办?

Linux关闭防火墙-iptables|iptable.service could not be found

Linux下wget出现ERROR: cannot verify Issued certificate has expire

无钥匙启动按钮,需要按几下才能发动汽车?

让开发改bug全靠催?分享两点实践

注意力太集中反而会效率低

靠谱是最高的评价了

选书就是做减法

Katalon框架测试安卓APK(一)

Linux磁盘满了-服务器不打日志df&rm

Linux性能压测命令用ab- command not found、plugins: fastestmirror

Linux性能监测top和free

相关文章

网友评论

      本文标题:Linux Tomcat started.实际上没有启动成功

      本文链接:https://www.haomeiwen.com/subject/fmsmsrtx.html