[报错信息处理]
mac版server不能正常启动
$ /Applications/YonghongZ-Suite/tomcat/bin/startup.command ; exit;
Password:
Using CATALINA_BASE: /Applications/YonghongZ-Suite/tomcat
Using CATALINA_HOME: /Applications/YonghongZ-Suite/tomcat
Using CATALINA_TMPDIR: /Applications/YonghongZ-Suite/tomcat/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home
Using CLASSPATH: :/Applications/YonghongZ-Suite/tomcat/webapps/bi/WEB-INF/classes:/Applications/YonghongZ-Suite/tomcat/../Yonghong/product/api.jar:/Applications/YonghongZ-Suite/tomcat/../Yonghong/product/product.jar:/Applications/YonghongZ-Suite/tomcat/../Yonghong/product/thirds.jar:/Applications/YonghongZ-Suite/tomcat/../Yonghong/lib/mongo-java-driver-3.11.0.jar:/Applications/YonghongZ-Suite/tomcat/lib/servlet-api.jar:/Applications/YonghongZ-Suite/tomcat/bin/bootstrap.jar:/Applications/YonghongZ-Suite/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS: -Xmx1024m -Xms1024m -XX:MetaspaceSize=256m -XX:G1HeapRegionSize=32m -XX:InitiatingHeapOccupancyPercent=35 -XX:G1ReservePercent=15 -XX:ConcGCThreads=10 -XX:ParallelGCThreads=10 -XX:+ParallelRefProcEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -Xlog:gc*:file=/Applications/YonghongZ-Suite/tomcat/../Yonghong/log/jvm.log:time:filecount=16 -Djava.awt.headless=true --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED -XX:OnError='/Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home/bin/jstack %p >/Applications/YonghongZ-Suite/tomcat/logs/thread_stack_%p.log' -XX:ErrorFile=/Applications/YonghongZ-Suite/tomcat/logs/hs_err_%p.log -XX:OnOutOfMemoryError='/Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home/bin/jmap -dump:format=b,file=/Applications/YonghongZ-Suite/tomcat/logs/jmap_%p.log %p' -XX:+ExitOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow
Tomcat started.
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[进程已完成]
免责声明:本文不代表本站立场,且不构成任何建议,请谨慎对待。
版权声明:作者保留权利,不代表本站立场。
Fiona
显示全部楼层
发表于 2022-1-15 17:15:50
cd到tomcat/bin这个目录下 运行catalina.sh run 命令,把报错发出来看看
一般可能由以下几点导致:
1. jdk不是jdk1.9以上
2. tomcat启动或停止端口被占用
3. 防火墙问题
4. 使用内存不够
yhdata_FrYZR0qq
来自手机
显示全部楼层
发表于 2022-1-15 19:58:50
Fiona
显示全部楼层
发表于 2022-1-15 20:17:35
这是你启动永洪闪退了。不是错误内容。
进入cmd,切到永洪安装目录/tomcat/bin下,运行catalina.sh run 命令,看看错误
yhdata_FrYZR0qq
显示全部楼层
发表于 2022-1-15 21:09:33
麻烦帮忙看下
Fiona
显示全部楼层
发表于 2022-1-15 22:03:48
yhdata_FrYZR0qq
显示全部楼层
发表于 2022-1-16 10:53:32
本帖最后由 yhdata_FrYZR0qq 于 2022-1-16 10:58 编辑
这个报错怎么修改
./catalina.sh: line 423: /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/bin/java: No such file or directory
./catalina.sh: line 423: exec: /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/bin/java: cannot execute: No such file or directoryjdk目录:
jdk安装路径
Fiona
显示全部楼层
发表于 2022-1-16 11:34:08
yhdata_0rDnf7Ex
显示全部楼层
发表于 2022-1-16 12:29:29