报错日志:

    1. Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alibaba.nacos.naming.consistency.persistent.PersistentConsistencyServiceDelegateImpl]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /tmp/librocksdbjni7640816786242651247.so: libstdc++.so.6: 无法打开共享对象文件: 没有那个文件或目录
    2. at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:187)
    3. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
    4. at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:300)
    5. ... 154 common frames omitted
    6. Caused by: java.lang.UnsatisfiedLinkError: /tmp/librocksdbjni7640816786242651247.so: libstdc++.so.6: 无法打开共享对象文件: 没有那个文件或目录
    7. at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    8. at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
    9. at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
    10. at java.lang.Runtime.load0(Runtime.java:810)
    11. at java.lang.System.load(System.java:1086)
    12. at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
    13. at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
    14. at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:64)
    15. at org.rocksdb.RocksDB.<clinit>(RocksDB.java:35)
    16. at com.alipay.sofa.jraft.storage.impl.RocksDBLogStorage.<clinit>(RocksDBLogStorage.java:75)
    17. at com.alipay.sofa.jraft.core.DefaultJRaftServiceFactory.createLogStorage(DefaultJRaftServiceFactory.java:50)
    18. at com.alipay.sofa.jraft.core.NodeImpl.initLogStorage(NodeImpl.java:571)
    19. at com.alipay.sofa.jraft.core.NodeImpl.init(NodeImpl.java:991)
    20. at com.alipay.sofa.jraft.core.NodeImpl.init(NodeImpl.java:138)
    21. at com.alipay.sofa.jraft.RaftServiceFactory.createAndInitRaftNode(RaftServiceFactory.java:47)
    22. at com.alipay.sofa.jraft.RaftGroupService.start(RaftGroupService.java:129)
    23. at com.alibaba.nacos.core.distributed.raft.JRaftServer.createMultiRaftGroup(JRaftServer.java:268)
    24. at com.alibaba.nacos.core.distributed.raft.JRaftProtocol.addRequestProcessors(JRaftProtocol.java:163)
    25. at com.alibaba.nacos.naming.consistency.persistent.impl.PersistentServiceProcessor.afterConstruct(PersistentServiceProcessor.java:79)
    26. at com.alibaba.nacos.naming.consistency.persistent.PersistentConsistencyServiceDelegateImpl.createNewPersistentServiceProcessor(PersistentConsistencyServiceDelegateImpl.java:108)
    27. at com.alibaba.nacos.naming.consistency.persistent.PersistentConsistencyServiceDelegateImpl.<init>(PersistentConsistencyServiceDelegateImpl.java:54)
    28. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    29. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    30. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    31. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    32. at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:175)
    33. ... 156 common frames omitted
    34. 2021-06-05 01:50:30,135 WARN [WatchFileCenter] start close
    35. 2021-06-05 01:50:30,135 WARN [WatchFileCenter] start to shutdown this watcher which is watch : /usr/local/nacos/nacos/conf

    解决办法:

    1. yum update
    2. yum install libstdc++.i686
    3. yum install compat-libstdc++-33.i686

    然后重启即可。