打开一个 * 配置文件
nano /etc/*.json
重启 *
/etc/init.d/* restart
centos6
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport ${*port} -j ACCEPT
iptables -I INPUT -m state --state NEW -m udp -p udp --dport ${*port} -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
centos7
firewall-cmd --permanent --zone=public --add-port=${*port}/tcp
firewall-cmd --permanent --zone=public --add-port=${*port}/udp
firewall-cmd --reload