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

354 阅读1分钟

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

本文使用 文章同步助手 同步