Nacos启动报错::

时间:2025-03-19 07:35:23

第一次接触Nacos,启动时报错(: )解决方案。

错误信息:

Caused by: : 
        at .getAllByName0(:1280)
        at (:1192)
        at (:1126)
        at (:45)
        at (:111)
        at (:353)
        at (:380)
        at (:236)
        at (:184)
        at (:88)
        at (:110)
        at (:184)
        at (:82)
        at (:107)
        at (:45)
        at (:46)
        at (:155)
        at (:101)
        ... 123 common frames omitted

解决方案:

Nacos默认是集群(cluster)启动,将其设置为单机(standalone)启动则不会报这个错。若需要集群启动则需要进行相关的集群配置。

windows启动:

-m standalone

linux启动:

-m standalone