我要评论 2012/09/23 19:48:11 来源:绿色资源网 编辑:www.downcc.com [大 中 小] 评论:0 点击:342次
前提:首先你必须知道,则相应的端口也再次开启。如:"~$ kill -9 PID" (PID:进程号)如: 通过"~$ netstat -anp | grep ssh"有显示: tcp 0 127.0.0.1:2121 0.0.0.0:* LISTEN 7546/ssh则: "~$ kill -9 7546"
(可通过"~$ chkconfig"查看系统服务的开启状态)
关键词:Linux
1. 可以通过"~$ netstat -anp" 来查看哪些端口被打开。如:"~$ sudo iptables -A INPUT -p tcp --dport $PORT -j DROP""~$ sudo iptables -A OUTPUT -p tcp --dport $PORT -j DROP" 2)或者关掉对应的应用程序,
Copyright © 2016 Powered by Linux查看端口状态及关闭端口方法,简能而任网 sitemap