永洪社区
标题: mac版server不能正常启动 [打印本页]
作者: yhdata_FrYZR0qq 时间: 2022-1-15 16:01
标题: 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
cd到tomcat/bin这个目录下 运行catalina.sh run 命令,把报错发出来看看
一般可能由以下几点导致:
1. jdk不是jdk1.9以上
2. tomcat启动或停止端口被占用
3. 防火墙问题
4. 使用内存不够
作者: yhdata_FrYZR0qq 时间: 2022-1-15 19:58
提示报错信息
作者: Fiona 时间: 2022-1-15 20:17
这是你启动永洪闪退了。不是错误内容。
进入cmd,切到永洪安装目录/tomcat/bin下,运行catalina.sh run 命令,看看错误
作者: yhdata_FrYZR0qq 时间: 2022-1-15 21:09
麻烦帮忙看下
作者: Fiona 时间: 2022-1-15 22:03
本帖最后由 Fiona 于 2022-1-15 22:05 编辑
1. java.io.FileNotFoundException: /Applications/YonghongZ-Suite/tomcat/logs/catalina.2022-01-15.log (Permission denied)
参考:https://zhuanlan.zhihu.com/p/95148639
2. Address already in use
看看是否起了多个永洪Server,如果有关闭掉,https://jingyan.baidu.com/article/d169e18641c841026611d8e0.html。
如果没有,那就是永洪使用的端口被占用了,修改Yonghong\tomcat\conf下server.xml文件的启动和停止端口。
3. Unsupported product type found: xv
是什么版本,用的什么license,license发出来看看。
作者: yhdata_FrYZR0qq 时间: 2022-1-16 10:53
本帖最后由 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目录:
(, 下载次数: 309)