首页
学习
活动
专区
工具
TVP
发布

运维

专栏作者
195
文章
316680
阅读量
39
订阅数
Redis未授权访问及安全组漏洞招致kerberods来挖矿
参考文档 https://www.freebuf.com/articles/web/94237.html https://www.4hou.com/vulnerable/13843.html https://laucyun.com/17e194c26e4554cab975aae760bad553.html
三杯水Plus
2019-04-19
5430
一次被***和删除***程序的经历
首先是下午14点左右有几台服务器出现流量超高,平时只有几百M的流量,那时候发现流量上G了,达到这个量第一感觉就是遭受了DDOS流量***,那时候手上的服务器比较多,出现几台并没
三杯水Plus
2018-11-14
8560
求两数的平均值
某文件中,有如下多行数据 ,需要统计含关键字:real 对应行的数值(第二列),并最后得出总平均值 请给出相关命令 或 实现思路? 样本数据如下: Real   1233 4566 Virtul 2345 6789 Real   5679 4566 Virtul 6789 6789 统计输出的格式如下: Real################### average Real                    XXXXX 具体解决方案如下: $cat aaa Real    1233    4566 Virtul  2345    6789 Real    5679    4566 Virtul  6789    6789 $cat sum.sh #!/bin/bash a=`grep Real aaa | awk '{print $2}'| head -n 1` b=`grep Real aaa | awk '{print $2}'| tail -n 1` let c=(a+b)/2 echo "Real################### average Real                    $c" $./sum.sh Real################### average Real                    3456
三杯水Plus
2018-11-14
1.2K0
邮件超出配额小脚本
邮箱超出配额小脚本 内容如下 #!/bin/bash cd /home/test postqueue -p | grep "quota" > quota if [ ` ls -l quota | awk '{print $5}' ` -eq 0 ] then echo "there is no quota user" | mail -s quota test@example.com else mail -s "quota" test@example.com < quota fi 上面的脚本也可以这样写 #!/bin/bash cd /backup/mysqlbak postqueue -p | grep "quota" > quota if [[ ! -s quota ]] then echo "there is no quota user" | mail -s quota test@example.com else mail -s "quota" test@example.com < quota fi
三杯水Plus
2018-11-14
5950
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档