SSHFS文件夹远程挂载工具

Linux服务器上可以使用sshfs将远程文件系统映射到本地目录。使用起来更方便。 yum install -y epel-release yum -y install fuse-<a href="http://yw8.tech/tag/sshfs/" title="查看与 sshfs 相关的文章 [阅读全文]

查看系统负载问题的shell

root@k8s01b:~# cat show_sys_info.sh #!/bin/bash # os_check() { if [ -e /etc/redhat-release ]; then REDHAT=`cat /etc/redhat-release |cut -d' ' -f1` else DEBIAN=`cat /etc/issue |cut -d' ' -f1` fi if [ "$REDHAT" == "CentOS" -o "$REDHAT" == "Red" ]; then P_M=yum elif [ "$DEBIAN" == "Ubuntu" -o "$DEBIAN" == "ubutnu" ]; then P_M=apt-get else Operating system does not support. exit 1 fi } if [ $LOGNAME != root ]; then echo "Please [阅读全文]