Zookeeper与Kafka systemctl自启动
vi /lib/systemd/system/zookeeper.service
[Unit]
Description=Zookeeper service
After=network.target
ConditionPathExists=/opt/zookeeper-3.4.14/conf/zoo.cfg
[Service]
Type=forking
Environment=“PATH=/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:
原创
2020-08-12 00:51:24 ·
553 阅读 ·
0 评论