centos7上默认开启的是+firewalld,关闭了iptables
停止防护墙:
systemctl stop firewalld.service
开机不启动:
systemctl disable firewalld.service
关闭防火墙:
systemctl stop iptables.service
开机不启动:
systemctl disable iptables.service
加入到开机自启动:
chkconfig --add elasticsearch
systemctl enable elasticsearch.service (此处不能再用chkconfig xxx on 这个命令了)