Zookeeper Installation and Deployment
Opening Specific Ports or Disabling Firewall
- Check already opened ports:
firewall-cmd --list-ports
- Open a specific port:
firewall-cmd --zone=public --add-port=2181/tcp --permanent
- Reload firewall configuration:
firewall-cmd --reload
- Confirm opened ports:
firewall-cmd --list-ports
- Stop the firewall:
systemctl stop firewalld
- Check firewall status:
systemctl status firewalld
Installation and Deployment
- Unpack the installation package:
tar -zxvf apache-zookeeper-3.6.1-bin.tar.gz -C /usr/local/
- Rename the extracted folder:
mv apache-zookeeper-3.6.1-bin/ zookeeper
- Start Zookeeper:
/usr/local/zookeeper/bin/zkServer.sh start /usr/local/zookeeper/conf/zoo_sample.cfg
- Verify Zookeeper status:
/usr/local/zookeeper/bin/zkServer.sh status /usr/local/zookeeper/conf/zoo_sample.cfg
This installation guide provides steps for deploying Zookeeper, opening the required ports, and starting the service. Make sure to follow each step carefully to ensure a successful deployment.