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

浙公网安备 33010602011771号