p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ".PingFang SC"; color: #454545 }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 }
p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; font: 12.0px "Helvetica Neue"; color: #454545 }
p.p4 { margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; font: 12.0px ".PingFang SC"; color: #454545 }
p.p5 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545; min-height: 14.0px }
span.s1 { font: 12.0px "Helvetica Neue" }
span.s2 { font: 12.0px ".PingFang SC" }
1、zookeeper的3个端口说明:
(1)2181:对client端提供服务;
(2)3888:选举leader使用;
(3)2888:集群内机器通讯使用(Leader监听此端口);
2、centos7无法启动防火墙的问题:
systemctl unmask firewalld.service 不屏蔽firewall服务
systemctl stop firewalld.service
systemctl start firewalld.service
查看防火墙状态的命令:
firewall-cmd --state
3、在centos7上部署的python项目,不要轻易启动防火墙,有可能外网无法访问;如果要开启防火墙,
则开放指定端口访问:c;
然后firewall-cmd --reload
4、启动nginx服务命令:systemctl restart nginx.service
原文地址:https://www.cnblogs.com/haoxinchen/p/9664524.html