批处理 windows 系统信息收集

2017年12月20日 0 条评论 2.25k 次阅读 0 人点赞

@echo off >systeminfo.txt echo CPU_start for /f "tokens=*" %%i in ('wmic cpu get name') do echo. %%i >>systeminfo.txt for /f "tokens=*" %%i i…

自动释放内存

2017年12月19日 0 条评论 1.58k 次阅读 0 人点赞

crontab设置 */20 * * * * /root/shell_.sh shell_.sh内容 第一次运行建议取消脚本注释手动执行一次查看结果 #!/bin/bash #当可用内存少于300M的时候释放内存。 do_free_mem=300 mem_now=`free -h |grep Mem…

oracle 11g 静默安装 centos

2017年12月1日 0 条评论 1.74k 次阅读 1 人点赞

1 安装前环境: 操作系统:CetnOS6.2x64 最小化安装,已配置好网络IP,物理内存8GB,硬盘100GB。 已下载:  linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip 位于目录 /opt/ 2…

shell 检测 tcp 端口是否开放

2017年11月29日 0 条评论 1.93k 次阅读 0 人点赞

[v_blue]脚本使用mutt命令发送邮件,可以替换为mail,使用方法//www.sevenfal.com/2017/11/29/1019.html[/v_blue] #!/bin/bash ly_ver=1.0.1 date1="2017-12-04 14:09" #curl 检测超…

shell 使用mutt发送邮件

2017年11月29日 0 条评论 1.87k 次阅读 0 人点赞

yum install msmtp mutt -y mkdir -p /usr/local/msmtp/etc vim /usr/local/msmtp/etc/msmtprc ############# # Set default values for all following accounts…

shell 检测http状态码邮件告警

2017年11月28日 0 条评论 1.68k 次阅读 0 人点赞

[v_blue]脚本使用mutt命令发送邮件,可以替换为mail,使用方法//www.sevenfal.com/2017/11/29/1019.html[/v_blue] #!/bin/bash ly_ver=1.0.3 date1="2017-12-04 14:06" #curl 检测超…

ssl connect error

2017年11月27日 0 条评论 1.93k 次阅读 0 人点赞

zabbix或者curl的时候出现 ssl connect error 升级nss即可 yum update nss -y

使用logrotate对任意日志进行分割

2017年11月24日 0 条评论 1.52k 次阅读 0 人点赞

whereis logrotate #logrotate: /usr/sbin/logrotate /etc/logrotate.conf /etc/logrotate.d /usr/share/man/man8/logrotate.8.gz vim…

linux 备份脚本 指定时间范围 获取

2017年11月17日 0 条评论 1.6k 次阅读 0 人点赞

备份文件保留说明 命令操作 #备份部分采用每6小时一次  #crontab内容 #备份  1 */6 * * * /bin/sh /root/backup.sh  #删除  1 1 …

openssh openssl 升级

2017年10月27日 0 条评论 1.68k 次阅读 1 人点赞

OpenSSL "SSL-Death-Alert" 拒绝服务漏洞(CVE-2016-8610)【原理扫描】 1.1下载升级包  当前最新版     openssl     https://w…

加载更多