![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
脚本
qiyuezhi
这个作者很懒,什么都没留下…
展开
-
shell脚本的安装lnmp
lnmp1.安装nginx的各种依赖#/bin/bashyum -y install epel-releaseyum clean allyum repolistyum -y install nginx php php-fpm mariadb-serversed -i "65c location ~ \.php$ {" /etc/nginx/nginx.conf.defaultsed -i "66c root html;" /etc/nginx/nginx.conf.原创 2020-06-18 22:26:47 · 147 阅读 · 0 评论 -
shell脚本的一些简单题
猜数字vim num.sh#/bin/bashnum=`expr $RANDOM % 100`echo $numkong=0while :do read -p "请输入要比较的数字:" shu echo $shu let kong++ if [ $shu -gt $num ];then echo "猜大了" elif [ $shu -lt $num ];then原创 2020-06-17 21:35:28 · 150 阅读 · 0 评论 -
linux的监控脚本信息
1. 能够对服务器CPU进行监控,并输出CPU的信息cat /proc/cpuinfo2. 能够对服务器内存进行监控,并输出内存剩余使用率信息mem_total=`free -m | awk '/Mem/{print $2}'`mem_used=`free -m | awk '/Mem/{print $3}'`precent_used=`echo "scale=2;$mem_used/$mem_total*100"|bc`echo "内存使用率: $precent_used %"3. 网络原创 2020-06-16 21:48:54 · 226 阅读 · 0 评论