1.编写zookeeper开机自启动文件
[root@182-48 zookeeper-3.4.14]# cat /etc/systemd/system/zookeeper.service [Unit] Description=Apache Zookeeper server After=syslog.target network.target [Service] Type=forking ExecStart=/app/luyt/gbserver/zookeeper-3.4.14/bin/zkServer.sh start ExecStop=/app/luyt/gbserver/zookeeper-3.4.14/bin/zkServer.sh stop ExecReload=/app/luyt/gbserver/zookeeper-3.4.14/bin/zkServer.sh restart [Install] WantedBy=multi-user.target
2.启动
systemctl daemon-reload systemctl start zookeeper systemctl status zookeeper systemctl status zookeeper
标签:14,app,zookeeper,开机,3.4,systemctl,自启动 From: https://www.cnblogs.com/Leonardo-li/p/17373410.html