摘要: 转至:https://www.cnblogs.com/opma/p/11607434.html 脚本如下: #! /bin/sh # filename killcpu.sh if [ $# -ne 1 ] ; then echo "USAGE: $0 <CPUs>|stop" exit 1; fi 阅读全文
posted @ 2020-10-27 14:13 study_goup 阅读(858) 评论(0) 推荐(0)
摘要: 转至: for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done 说明: cat /proc/cpuinfo |grep "physical id" 阅读全文
posted @ 2020-10-27 14:11 study_goup 阅读(3543) 评论(0) 推荐(0)
摘要: 转至:https://blog.csdn.net/xinxin_2011/article/details/84936581 服务器使用的是Centos7.2 64位系统。发现服务器异常,一般先想到用top命令查看占用CPU高的进程,但如果是高手入侵,可能会替换掉你系统的一些重要命令。所以建议装系统后 阅读全文
posted @ 2020-10-27 14:09 study_goup 阅读(1687) 评论(0) 推荐(0)
摘要: 转至:https://www.cnblogs.com/Pigs-Will-Fly/p/13855300.html 目录 前言 系统配置 文档作用 一、Centos 6.X 系列配置 1.1 主机名 1.2 DNS 1.3 NTP 1.4 YUM 1.5 时区 1.6 系统字符集 1.7 用户 1.8 阅读全文
posted @ 2020-10-27 11:29 study_goup 阅读(161) 评论(0) 推荐(0)
摘要: 转至:https://www.cnblogs.com/eternityz/p/13879836.html 前提 在编写shell程序时经常需要处理命令行参数 选项与参数: 如下命令行: ./test.sh -f config.conf -v --prefix=/home -f为选项,它需要一个参数, 阅读全文
posted @ 2020-10-27 11:16 study_goup 阅读(737) 评论(0) 推荐(0)