ping www.baidu.com
下載方式1
wget https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png
下載方式2
curl -O https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png
-------------------------------
yum -y install nmap
查看當前ip,對外暴露端口
nmap 127.0.0.1
-------------------------------
yum -y install net-tools
查看端口占用
netstat -anp | grep 6000
-------------------------------
ps -ef
-e 全部進程
-f格式化顯示
過濾結果
ps -ef | grep mysql
關閉進程333
kill -9 333
-9 強制關閉進程
-------------------------------
查看cpu/內存
top
top -c
top -p 333
查看磁盤
df -h
查看cpu + 磁盤讀寫速度
yum -y install sysstat
iostat
iostat -x
網絡狀態監控
sar -n DEV num1 num2
num1 間隔時間
num2 查看次數
sar -n DEV 3 2