`

centos查看端口占用及开启防火墙端口

阅读更多

1.查看端口占用情况

#netstat -tunlp

 2.开启防火墙端口

#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT 

 3.保存防火墙端口开启设置

#/etc/rc.d/init.d/iptables save 

 4.重启防火墙 

#/etc/init.d/iptables restart

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics