python-清理过期目录与文件

摘要: #-*- coding: utf-8 -*- #author: kycy #date: 20151021 import glob import sys import os import subprocess from datetime import datetime #定义日志文件 logfile="F:\jobs\cleanfilelog.log" #获取当前时间 now = datetime... 阅读全文
posted @ 2016-11-05 14:49 运维随笔 阅读(193) 评论(0) 推荐(0)

centos 7 firewall 基本应用

摘要: 1、保持修改后的配置firewall-cmd --runtime-to-permanent 以上命令相对与centos7之前版本中的service iptables save命令(centos7中已不支持此命令) 2、查看firewall运行状态firewall-cmd --state 3、开启恐慌 阅读全文
posted @ 2016-11-05 14:32 运维随笔 阅读(277) 评论(0) 推荐(0)