首页 > 代码库 > 常用命令
常用命令
列出所有端口 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开机启动
常用命令
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。