root@server-4:/usr/local/apache-zookeeper-3.5.6/bin# sh zkServer.sh start
zkServer.sh: 78: /usr/local/apache-zookeeper-3.5.6/bin/zkEnv.sh: [[: not found
-p: not found
java is /usr/lib/jvm/jdk1.8.0_191/bin/java
Error: JAVA_HOME is not set and java could not be found in PATH.
Ubuntu 16.04启动Zookeeper报[[: not found,-p: not found错
现象:Ubuntu 16.04启动Zookeeper报[[: not found错,如下root@server-4:/usr/local/apache-zookeeper-3.5.6/bin# sh zkServer.sh startzkServer.sh: 78: /usr/local/apache-zookeeper-3.5.6/bin/zkEnv.sh: [[: not found-p...