linux下载安装Nacos2.4.1运行不了?

linux下载安装Nacos2.4.1运行不了?[root@localhost conf]# systemctl status nacos
● nacos.service - nacos
Loaded: loaded (/usr/lib/systemd/system/nacos.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2024-08-23 03:15:06 EDT; 12s ago
Process: 529868 ExecStop=/usr/local/nacos/bin/shutdown.sh (code=exited, status=255)
Process: 529762 ExecStart=/usr/local/nacos/bin/startup.sh -m standalone (code=exited, status=0/SUCCESS)
Main PID: 528304 (code=exited, status=1/FAILURE)

Aug 23 03:15:00 localhost.localdomain systemd[1]: Starting nacos...
Aug 23 03:15:00 localhost.localdomain startup.sh[529762]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.422.b05-2.el8.x86_64/bin/java -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.422.b05-2.el8.x86_64/jre/lib/ext:/usr/lib/jvm/java-1.8.0>
Aug 23 03:15:00 localhost.localdomain startup.sh[529762]: nacos is starting with standalone
Aug 23 03:15:00 localhost.localdomain startup.sh[529762]: nacos is starting. you can check the /usr/local/nacos/logs/start.out
Aug 23 03:15:00 localhost.localdomain systemd[1]: Started nacos.
Aug 23 03:15:06 localhost.localdomain shutdown.sh[529868]: No nacosServer running.
Aug 23 03:15:06 localhost.localdomain systemd[1]: nacos.service: Control process exited, code=exited status=255
Aug 23 03:15:06 localhost.localdomain systemd[1]: nacos.service: Failed with result 'exit-code'.
lines 1-15/15 (END) Caused by: java.lang.IllegalArgumentException: The specified key byte array is 0 bits which is not secure enough for any JWT HMAC-SHA algorithm. The JWT JWA Specification (RFC 7518, Section 3.2) states that keys used with HMAC-SHA algorithms MUST have a size >= 256 bits (the key size must be greater than or equal to the hash output size). See https://tools.ietf.org/html/rfc7518#section-3.2 for more information.
at com.alibaba.nacos.plugin.auth.impl.jwt.NacosJwtParser.(NacosJwtParser.java:54)
at com.alibaba.nacos.plugin.auth.impl.token.impl.JwtTokenManager.processProperties(JwtTokenManager.java:76)
... 120 common frames omitted
2024-08-23 03:15:06,260 WARN [ThreadPoolManager] Start destroying ThreadPool

展开
收起
我睡觉不困 2024-08-26 16:06:21 127 发布于辽宁 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • The specified key byte array is 0 bits
    

    看这个提示,说明没有配置鉴权相关的内容和specified key。
    在新版的nacos鉴权是必须要开启的。参照https://editor.csdn.net/md/?articleId=128924056 中nacos漏洞修复部分内容。

    2024-09-05 13:07:59 举报
    赞同 展开评论

    评论

为微服务建设降本增效,为微服务落地保驾护航。

还有其他疑问?
咨询AI助理
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等