zookeeper java -cp 命令 不能用 "~"

查看日志的时候:

虽然~就是/root,但是如下是不可以的

java -cp :~/apache-zookeeper-3.6.0-bin/lib/slf4j-api-1.7.25.jar:~/apache-zookeeper-3.6.0-bin/lib/zookeeper-3.6.0.jar:~/apache-zookeeper-3.6.0-bin/lib/zookeeper-jute-3.6.0.jar org.apache.zookeeper.server.LogFormatter log.200000001

正确的应该是

java -cp :/root/apache-zookeeper-3.6.0-bin/lib/slf4j-api-1.7.25.jar:/root/apache-zookeeper-3.6.0-bin/lib/zookeeper-3.6.0.jar:/root/apache-zookeeper-3.6.0-bin/lib/zookeeper-jute-3.6.0.jar org.apache.zookeeper.server.LogFormatter log.200000001

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读