首页 > 其他分享 >system管理zookeeper

system管理zookeeper

时间:2023-02-25 14:55:09浏览次数:46  
标签:bin 管理 zookeeper system sh zkServer data

[root@ajsh-dev006 systemd]# cat /usr/lib/systemd/system/zk.service 
[Unit]
Description=zookeeper.service
After=network.target
 
[Service]
User=root
Group=root

LimitNOFILE=65535
LimitNPROC=65535

Type=forking

Environment=JAVA_HOME=/usr/local/jdk/

ExecStart=/data/zookeeper/bin/zkServer.sh start
ExecStop=/data/zookeeper/bin/zkServer.sh stop
ExecReload=/data/zookeeper/bin/zkServer.sh restart

Restart=on-failure
RestartSec=3s
 
[Install]
WantedBy=multi-user.target


标签:bin,管理,zookeeper,system,sh,zkServer,data
From: https://www.cnblogs.com/anslinux/p/17154425.html

相关文章