Linux常用操作

2019-11-19  本文已影响0人  角角_d216

centos7关闭防火墙:

systemctl stop firewalld.service

systemctl disable firewalld.service

centos6关闭防火墙:

永久性生效,重启后不会复原

开启: chkconfig iptables on

关闭: chkconfig iptables off

即时生效,重启后复原

开启: service iptables start

关闭: service iptables stop

开启端口:

/sbin/iptables -I INPUT -p tcp --dport 5672 -j ACCEPT

向文件写入空数据:cat /dev/null >catalina.out

上一篇 下一篇

猜你喜欢

热点阅读