zookeeper 部署+rocketmq 部署
zookeeper 部署 wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz tar zxf zookeeper-3.4.14.tar.gz cp -r zookeeper-3.4.14 /usr/local/zookeeper cd /usr/local/zookeeper/conf cp zoo_sample.cfg zoo.cfg vim zoo.cfg #添加如下内容 datadir=/usr/local/zookeeper/data/data dataLogDir=/usr/local/zookeeper/data/datalog mkdir -p /usr/local/zookeeper/data/data mkdir -p /usr/local/zookeeper/data/datalog cd ../bin/ ./zkServer.sh start #编辑启动文件 vim /usr/lib/systemd/system/zookeeper.service [Unit] Description=zookeeper After=network.target remote-fs.target nss-lookup.target