yum install -y python-requests
Monthly Archives: October 2022
几个巡检命令
iostat free -h df -h top mysql的show processlist; cat /etc/zabbix/zabbix_agent.conf | grep -vE ‘^$|#’ 去掉空格和注释 echo “xxx”>a.conf 清空a.conf的内容,写入xxx echo “xxx”>>a.conf 在a.conf里加一条xxx的内容 du -m /run 查看/run目录的大小,以MB单位 du -h /run 查看/run目录的大小,以GB单位 du -sm /run 只看/run目录的大小,以MB单位 df -h /bwyprdshare | sed ‘s/\%//g’ | awk ‘{print $5}’| sed -n ‘2p’ 查看 /bwyprdshare 的目录占用空间状态, sed ‘s/\%//g’ 去除%号显示, awk ‘{print $5}’ […]
Centos7 查看主机公网IP
curl cip.cc windows可以用telnet cip.cc 只看IP,不要详细信息,可以curl ip.cip.cc