linux 命令

 查看端口是否被占用  
   netstat -nutpl|grep 10443        lsof -i:10447        
   netstat -nupl (UDP类型的端口)                netstat -ntpl (TCP类型的端口)
   netstat -tunlp|grep 端口号:  用于查看指定端口的进程情况,
      netstat -tulp  用于tcp udp 端口的进程情况。
 
 
  停止防火墙:    service   iptables stop
 
  启动  :service   iptables start 
 
  重启:service   iptables restart 
 
  永久关闭: chkconfig   iptables off 
 
  永久关闭后启用:chkconfig   iptables on
 
  查看防火墙状态:   service iptables status
posted @ 2019-07-16 17:21  那一的眸相遇  阅读(138)  评论(0编辑  收藏  举报