uname -a cat /proc/version cat /etc/redhat-release
du --max-depth=1 -h du -sh
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
fuser JmDiService.log netstat -ntlp netstat -anp | grep kubelet
find . -name "*.yaml" grep -iR "Certificate" *.*
hostnamectl set-hostname k8s-master curl -i localhost
journalctl -fu kubelet tail -f /var/log/messages
echo 1 > /proc/sys/vm/drop_caches 0:是系统默认值,默认情况下表示不释放内存,由操作系统自动管理 1:释放页缓存 2:释放dentries和inodes 3:释放所有缓存
sed -i "s/153/218/g" /etc/hosts # 批量替换文件 for cfg in `ls | grep .conf`; \ do echo ========$cfg========;\ sed -i "s/server_old/server_new/g" $cfg;\ cat $cfg;\ done
lspci |grep VGA