我即将在 Ubuntu 16.04 上安装 OpenEMM,之前已在 Ubuntu 14.04 上成功安装。现在我面临的问题是,OpenEMM 不知何故无法看到 tomcat 正在运行。我按照提供的文档进行操作。
经过版本检查,我得到了以下信息:
openemm@rex:~/bin$ ./openemm.sh version
openemm.sh: 1.0.2
Username: openemm
Hostname: rex
Error: Could not find or load main class org.apache.catalina.util.ServerInfo
Tomcat 可以手动启动并通过 :8080 访问。但是如果我手动启动 tomcat,它将以 root 用户身份运行,而不是以 openemm 用户身份运行。
启动脚本提供以下内容:
openemm@rex:~/bin$ ./openemm.sh start
Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start python /home/openemm/bin/scripts/recovery.py .. done.
Start /home/openemm/bin/scripts/update.py account bounce .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Stopping obsolete sendmail processes: -15:4634 -15:4678 -9:4634 done.
[ ok ing sendmails: listener [....] Starting sendmail (via systemctl): sendmail.service.
mail queues ADMIN QUEUE MIDQUEUE SLOWQUEUE done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation :OK
Check Tomcat installation :FAILED
Tomcat 位于此处:
rex:~$ ll /opt/openemm/tomcat
lrwxrwxrwx 1 root root 20 Feb 7 14:18 /opt/openemm/tomcat -> apache-tomcat-8.5.11/
这可能是什么问题?
答案1
您是否检查过用户 openemm 是否定义了正确的 JAVA_HOME / JRE_HOME / CATALINA_HOME(如果需要)路径?