script
逆风的弦
这个作者很懒,什么都没留下…
展开
-
[工具]linux应用log迁移
#!/usr/bin/env bash#Mvlog.sh#Create by zhoupeihao#20151126#OldLogDir=`pwd|xargs basename`/logsNewLogDir=/data/logsLogDirName=logs#BackupDir=DelDir=/tmp/Mvlogmovelog()原创 2015-11-26 18:33:38 · 404 阅读 · 0 评论 -
文件备份工具
files_backup.py #!/usr/bin/env python# -*- coding: UTF-8 -*-import hashlib,shutil,time,json,osfrom config import *NowTime=time.strftime("%Y%m%d%H%M%S", time.localtime())def原创 2017-04-09 15:18:15 · 254 阅读 · 0 评论 -
Ansible 启停tomcat遇到的问题
###deploy.yml- hosts: 192.168.2.114 remote_user: tomcatadmin vars: project_name: ccqwsV2 deploy_file: ccqwsV2.war tasks:##8081 - name: shutdown tomcat-1-8081 scrip原创 2017-03-17 17:50:11 · 1269 阅读 · 0 评论 -
Codis进程守护脚本
CodisProxy_Daemon.sh #!/bin/bash#CodisProxy Daemon ProcessProcessName=codis-proxySleepTime=10CodisPath[9990]=/opt/codismem/conf_one/CodisPath[9991]=/opt/codismem/conf_two/CodisPath[9原创 2016-01-19 15:56:02 · 285 阅读 · 0 评论 -
[工具]Web连接测试
#!/usr/bin/env python# -*- coding: utf-8 -*-import os,sysimport timeimport pycurlURL=raw_input('Pls ipt url: ')Proxy=raw_input('Pls ipt proxy: ')c=pycurl.Curl()c.setopt(pycurl.URL,UR原创 2015-12-18 10:45:15 · 447 阅读 · 0 评论