M1 启动 nacos 报错 (mach-o file, but is an incompatible architecture (have 'x86_64', need ‘arm64')...

下载X86架构的 JDK

944885B1-3596-4FA2-BCD9-4DF259F33088.png

指定 JAVA_HOME

export JAVA_HOME=/Users/xxxx/Downloads/jdk-17.0.1.jdk64/Contents/Home

启动nacos

(base) ➜  bin ./startup.sh

/Users/xxxx/Downloads/jdk-17.0.1.jdk64/Contents/Home/bin/java

/Users/xxxxx/Downloads/jdk-17.0.1.jdk64/Contents/Home/bin/java  -Xms512m -Xmx512m -Xmn256m -Dnacos.standalone=true -Dnacos.member.list= -Xlog:gc*:file=/Users/xxxx/workspace/dhdc/nacos/logs/nacos_gc.log:time,tags:filecount=10,filesize=102400 -Dloader.path=/Users/xxxxx/workspace/dhdc/nacos/plugins/health,/Users/xxxxx/workspace/dhdc/nacos/plugins/cmdb,/Users/xxxxxx/workspace/dhdc/nacos/plugins/selector -Dnacos.home=/Users/xxxx/workspace/dhdc/nacos -jar /Users/xxxxx/workspace/dhdc/nacos/target/nacos-server.jar  --spring.config.additional-location=file:/Users/xxxxxx/workspace/dhdc/nacos/conf/ --logging.config=/Users/xxxxx/workspace/dhdc/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288

nacos is starting with standalone

nacos is starting,you can check the /Users/xxxxx/workspace/dhdc/nacos/logs/start.out

(base) ➜  bin tail -fn 100 /Users/xxxx/workspace/dhdc/nacos/logs/start.out

/Users/xxxx/Downloads/jdk-17.0.1.jdk64/Contents/Home/bin/java  -Xms512m -Xmx512m -Xmn256m -Dnacos.standalone=true -Dnacos.member.list= -Xlog:gc*:file=/Users/xxxxxx/workspace/dhdc/nacos/logs/nacos_gc.log:time,tags:filecount=10,filesize=102400 -Dloader.path=/Users/xxxxxx/workspace/dhdc/nacos/plugins/health,/Users/xxxxx/workspace/dhdc/nacos/plugins/cmdb,/Users/xxxx/workspace/dhdc/nacos/plugins/selector -Dnacos.home=/Users/xxxxx/workspace/dhdc/nacos -jar /Users/xxxxx/workspace/dhdc/nacos/target/nacos-server.jar  --spring.config.additional-location=file:/Users/xxxxx/workspace/dhdc/nacos/conf/ --logging.config=/Users/xxxx/workspace/dhdc/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288

        ,--.

      ,--.'|

  ,--,:  : |                                          Nacos 2.1.1

,`--.'`|  ' :                      ,---.              Running in stand alone mode, All function modules

|  :  :  | |                      '  ,'\  .--.--.    Port: 8848

:  |  \ | :  ,--.--.    ,---.  /  /  | /  /    '  Pid: 27526

|  : '  '; | /      \  /    .  ; ,. 😐  :  /`./  Console: http://172.16.40.133:8848/nacos/index.html

'  ' ;.    ;.--.  .-. | /    / ''  | |: 😐  :  ;_

|  | | \  | __/: . ..    ' / '  | .; : \  \    `.      https://nacos.io

'  : |  ; .' ," .--.; |'  ; :__|  :    |  `----.  \

|  | '`--'  /  /  ,.  |'  | '.'|\  \  /  /  /`--'  /

'  : |    ;  :  .'  \  :    : `----'  '--'.    /

;  |.'    |  ,    .-./\  \  /            `--'---'

'---'        `--`---'    `----'

2024-08-02 11:13:54,486 INFO Tomcat initialized with port(s): 8848 (http)

2024-08-02 11:13:54,785 INFO Root WebApplicationContext: initialization completed in 10226 ms

2024-08-02 11:14:04,797 INFO Adding welcome page: class path resource [static/index.html]

2024-08-02 11:14:06,267 WARN You are asking Spring Security to ignore Ant [pattern='/**']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead.

2024-08-02 11:14:06,271 INFO Will not secure Ant [pattern='/**']

2024-08-02 11:14:06,371 INFO Will secure any request with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@9b76b60, org.springframework.security.web.context.SecurityContextPersistenceFilter@46f902e0, org.springframework.security.web.header.HeaderWriterFilter@bbd4791, org.springframework.security.web.csrf.CsrfFilter@4f4c88f9, org.springframework.security.web.authentication.logout.LogoutFilter@2eed37f4, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@361abd01, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7165d530, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@3fb9a67f, org.springframework.security.web.session.SessionManagementFilter@257ef9ed, org.springframework.security.web.access.ExceptionTranslationFilter@ae73c80]

2024-08-02 11:14:06,441 INFO Exposing 1 endpoint(s) beneath base path '/actuator'

2024-08-02 11:14:06,567 INFO Tomcat started on port(s): 8848 (http) with context path '/nacos'

2024-08-02 11:14:06,623 INFO Nacos started successfully in stand alone mode. use external storage

2024-08-02 11:14:33,134 INFO Initializing Servlet 'dispatcherServlet'

2024-08-02 11:14:33,137 INFO Completed initialization in 2 ms
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值