码迷,mamicode.com
首页 > 其他好文 > 详细

常用命令

时间:2016-12-16 10:05:05      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:netstat   gre   tar   stat   ssd   命令   表示   常用   ros   

列出所有端口 netstat -a  # netstat -a | more

列出所有 udp 端口 netstat -a   # netstat -au

列出所有 tcp 端口 netstat -at  # netstat -at

 

查看所有进程里 CMD 是 ssdb 的进程信息

ps -aux | grep ssdb

 

kill 命令用于终止进程:kill -9 [PID]    -9 表示强迫进程立即停止

 

防火墙:

1) 重启后生效 
开启: chkconfig iptables on
关闭: chkconfig iptables off

2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop

CenterOs7:

systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动



 

常用命令

标签:netstat   gre   tar   stat   ssd   命令   表示   常用   ros   

原文地址:http://www.cnblogs.com/tianboblog/p/6185620.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!