./startup.sh: 81: ./startup.sh: [[: not found
./startup.sh: 91: ./startup.sh: [[: not found
./startup.sh: 93: ./startup.sh: [[: not found
./startup.sh: 99: ./startup.sh: [[: 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=/home/swift/Test/nacos/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Djava.ext.dirs=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/lib/jvm/java-8-openjdk-amd64/lib/ext:/home/swift/Test/nacos/nacos/plugins/cmdb:/home/swift/Test/nacos/nacos/plugins/mysql -Xloggc:/home/swift/Test/nacos/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/swift/Test/nacos/nacos -Dloader.path=/home/swift/Test/nacos/nacos/plugins/health -jar /home/swift/Test/nacos/nacos/target/nacos-server.jar --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/home/swift/Test/nacos/nacos/conf/ --logging.config=/home/swift/Test/nacos/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
./startup.sh: 120: ./startup.sh: [[: not found
nacos is starting with cluster
nacos is starting,you can check the /home/swift/Test/nacos/nacos/logs/start.out
我被这个坑了一波,一直以sh的方式执行,谁知道用的解释其居然是bash