Linux常用命令

来源:互联网 发布:淘宝怎么买高仿鞋 编辑:程序博客网 时间:2024/05/24 00:04

1.临时关闭防火墙

service iptables stop 

2.临时打开防火墙

service iptables start 

3.永久开启防火墙(需要重启)

chkconfig iptables on 

4.永久关闭防火墙

chkconfig iptables off 

5.查看某端口是否被占用

netstat -tunpl l grep 80

6.查看磁盘使用情况

df

0 0
原创粉丝点击