摘要:
时间计划任务 Crontab 常用方法 注意事项:需要提前安装 postfix mailx 服务 1、【安装】 2、【启动】 3、【格式说明】 4、【环境变量修改】 5、【案例说明】 时间同步服务NTP #1、检查是否安装ntp rpm -qa|grep ntp #2、若未安装则安装ntp yum 阅读全文
摘要:
💡 案例1、取出Nginx日志文件中访问 ip 出现的次数,并把访问次数最多的5个ip统计并打印 awk '{print $1}' test.net_access.log.bak | sort | uniq -c | sort -rn | head -n5 💡 案例2、文件 a.log 格式如下 阅读全文
摘要:
这里以 Windows 10系统为例 1、编写脚本,保存为后缀为 .sh 的文件 netsh interface set interface "VMnet1" disabled netsh interface set interface "VMnet1" enabled netsh interfac 阅读全文