Linux系统监控与网络管理命令汇总.pptxVIP

  • 0
  • 0
  • 约6.16千字
  • 约 23页
  • 2026-04-27 发布于北京
  • 举报

第13章Linux系统管理技巧

监控系统状态w查看系统负载vmstat1查看cpu、内存、磁盘等状态top查看各个进程占用cpu、内存百分比,默认按cpu排序sar-nDEV1查看网卡流量sar-q查看历史负载nload查看网卡流量free查看内存psaux查看进程netstat-an查看网络连接netstat-lnp查看监听端口tcpdump-nn抓包

Linux网络相关ifconfig查看ip,ifconfig-a查看全部网卡,包括down状态的网卡mii-toolens33查看网卡状态设置主机名:hostnamectlset-hostnamenewhostname设置dnsvi/etc/resolv.conf格式:nameserverip

selinux查看状态getenforce临时关闭setenforce0永久关闭vi/etc/selinux/config把SELINUX=enforcing改成SELINUX=disabled

netfiltersystemctlstopfirewalld//关闭firewalld服务systemctldisablefirewalld//禁止firewalld服务开机启动yuminstall-yiptables-services//安装ipt

文档评论(0)

1亿VIP精品文档

相关文档