apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.

Home Page:https://seata.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M1 mac JDK 17 无法启动seata 2.0.0

1040968536 opened this issue · comments

`seven@deMacBook-Pro bin % java -version
java version "17.0.10" 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)
seven@deMacBook-Pro bin % ls
seata-server.bat seata-setup.sh
seata-server.sh startup.sh
seven@deMacBook-Pro bin % sh seata-server.sh -p 8091 -h 127.0.0.1 -m file
apm-skywalking not enabled
JMX disabled
/Users/seven/Java/jdk-17.0.10.jdk//Contents/Home/bin/java -Dlog.home=/Users/seven/logs/seata -server -Dloader.path=/Users/seven/Downloads/seata/lib -Xmx2048m -Xms2048m -Xss640k -XX:SurvivorRatio=10 -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -XX:MaxDirectMemorySize=1024m -XX:-OmitStackTraceInFastThrow -XX:-UseAdaptiveSizePolicy -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/Users/seven/logs/seata/java_heapdump.hprof -XX:+DisableExplicitGC -Xlog:gc*:file=/Users/seven/logs/seata/seata_gc.log:time,tags:filecount=10,filesize=102400 -Dio.netty.leakDetectionLevel=advanced -Dapp.name=seata-server -Dapp.pid=1198 -Dapp.home=/Users/seven/Downloads/seata -Dbasedir=/Users/seven/Downloads/seata -Dspring.config.additional-location=/Users/seven/Downloads/seata/conf/ -Dspring.config.location=/Users/seven/Downloads/seata/conf/application.yml -Dlogging.config=/Users/seven/Downloads/seata/conf/logback-spring.xml -jar /Users/seven/Downloads/seata/target/seata-server.jar -p 8091 -h 127.0.0.1 -m file >> /dev/null 2>&1 &
seata-server is starting, you can check the /Users/seven/logs/seata/ *.log
seven@deMacBook-Pro bin % cd /Users/seven/logs/
seven@deMacBook-Pro logs % ls
csp eagleeye
seven@deMacBook-Pro logs %

`

java version "17.0.10"
seata-server-2.0.0
mysql-8.3.0
macOS Sonoma 14.4

How do you determine if the start-up has failed?

I used JDK 17 and M1, and it ran okay.

image image

How do you determine if the start-up has failed?

I used JDK 17 and M1, and it ran okay.

image image

我使用命令查询了 相应的端口状态 同时我无法访问 http://localhost:8091/
seven@deMacBook-Pro logs % netstat -anp tcp -v | grep 8091
seven@deMacBook-Pro logs % lsof -i :8091
seven@deMacBook-Pro logs %

Are there any error logs in the log directory? /Users/seven/logs/seata/ *.log

Are there any error logs in the log directory? /Users/seven/logs/seata/ *.log

并没有产生日志文件

You can try deploying Seata using the Docker image they have published, which is based on Java 17.

Are there any error logs in the log directory? /Users/seven/logs/seata/ *.log

并没有产生日志文件

你可以看看/Users/seven/logs/目录下是否有seata文件夹,如果没有,可以手动新建一个,再尝试启动

@1040968536 ,请问解决了吗,我也有这个问题,能教教我吗,谢谢🙏

@1040968536 ,请问解决了吗,我也有这个问题,能教教我吗,谢谢🙏

Are there any error logs in the log directory? /Users/seven/logs/seata/ *.log

并没有产生日志文件

你可以看看/Users/seven/logs/目录下是否有seata文件夹,如果没有,可以手动新建一个,再尝试启动

这个可以解决