tar -xvf zookeeper-3.4.6.tar.gz -C /usr/local/hadoop/

-C作用为将tar的工作目录从当前目录改为/usr/local/hadoop/