linux 安装 nacos 使用命令sh -m standalone启动报错:

时间:2025-04-01 11:00:48

使用命令sh -m standalone启动报错:

./: 78: ./: [[: not found

./: 88: ./: [[: not found

./: 90: ./: [[: not found

./: 96: ./: [[: not found

/usr/lib/jvm/java-8-openjdk-amd64/bin/java -server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/soft/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/lib/jvm/java-8-openjdk-amd64/lib/ext:/data/soft/nacos/plugins/cmdb:/data/soft/nacos/plugins/mysql -Xloggc:/data/soft/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -=/data/soft/nacos -jar /data/soft/nacos/target/ --=classpath:/,classpath:/config/,file:./,file:./config/,file:/data/soft/nacos/conf/ --=/data/soft/nacos/conf/

./: 116: ./: [[: not found

nacos is starting,you can check the /data/nacos/logs/

解决方法

改用命令bash -f ./ -m standalone启动

问题二:Failed to create database ‘/data/soft/nacos/data/derby-data’

问题描述

使用命令sh -m standalone启动的时候,出现如下报错:

Caused by: : load : Cannot create PoolableConnectionFactory (Failed to create database ‘/data/nacos/data/derby-data’, see the next exception for details.)

at (:110)

at (:94)

at .invoke0(Native Method)

at (:62)

at (:43)

at (:498)

at $(:363)

at $(:307)

at (:136)

… 70 common frames omitted

解决方法

删除报错信息中的’/data/nacos/data/derby-data’目录,重新启动。

参照/weixin_33070823/article/details/112041910