docker部署zookeeper

docker run -itd --network host  --restart always --name=zk3 \
--hostname zookeeper-server --privileged=true  \
-v /app/zookeeper/conf/zoo.cfg:/opt/zookeeper-3.4.13/conf/zoo.cfg  \
-v /app/zookeeper/data:/opt/zookeeper-3.4.13/data    \
-v /app/zookeeper/datalog:/opt/zookeeper-3.4.13/datalog  \
  --restart=always   \
   -e "TZ=Asia/Shanghai"    \
-e "JAVA_OPTS=-server -Xms512m -Xmx512m -Xmn256m -Duser.home=/opt -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX: AlwaysPreTouch -XX:-UseBiasedLocking"   \
zookeeper

你可能感兴趣的:(大数据)