当前位置:首页 > 操作系统 > Linux

Linux的简单命令(防火墙篇)

名称 解释
重启 reboot
关机

shutdown  -h   now   

poweroff

查看本机IP地址 ifconfig
查看默认网卡信息的文件 cat /etc/sysconfig/network-scripts/ifcfg-eth0
重启网络   service network  restart
防火墙服务    IPtables  
查看防火墙服务是否开启 service iptables status
关闭防火墙 service iptables stop
查看防火墙开机是否启动   chkconfig iptables --list
开启防火墙 service iptables start
让防火墙开机不启动 chkconfig iptables off
让防火墙开机启动 chkconfig iptables on

原文:https://www.cnblogs.com/hph1728390/p/11079037.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐