一.启动tomcat时提示:Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
解决办法:
1.使用systemctl status tomcat.service查看tomcat状态及报错信息
2.分析判断后,在/mnt/install/tomcat/apache-tomcat-9.0.6/bin目录下catalina.sh文件中添加
JAVA_HOME=/mnt/install/jdk1.8.0_121
JRE_HOME=/mnt/install/jdk1.8.0_121/jre