io查看
iostat -x 5
cpu
htop(包含内存数据)
或者
top
内存
有实际的内存(mem)和缓存(buffer)注意区分
free -g
free -h
free -m
sync echo 3 > /proc/sys/vm/drop_caches # sync表示将内存缓存区内容立即同步到磁盘,为了保证安全可以多执行几次。
网络
nload
或
iftop -i eth1 #eth1是网卡名称
文件系统
df -h
磁盘查看
lsblk
计算文件夹大小
du -sh *
ubuntu—进程端口号
- 根据服务名查看进程pid:ps -ef |grep blue
- 根据进程号查看端口号:netstat -atunp| grep 12301
- 根据端口号来查看进程号:lsof -i:16031