![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小工具
逆风的弦
这个作者很懒,什么都没留下…
展开
-
[工具]linux应用log迁移
#!/usr/bin/env bash #Mvlog.sh #Create by zhoupeihao #20151126 #OldLogDir=`pwd|xargs basename`/logs NewLogDir=/data/logs LogDirName=logs #BackupDir= DelDir=/tmp/Mvlog movelog()原创 2015-11-26 18:33:38 · 362 阅读 · 0 评论 -
文件备份工具
files_backup.py #!/usr/bin/env python # -*- coding: UTF-8 -*- import hashlib,shutil,time,json,os from config import * NowTime=time.strftime("%Y%m%d%H%M%S", time.localtime()) def原创 2017-04-09 15:18:15 · 226 阅读 · 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 · 1220 阅读 · 0 评论 -
ssh互信+scp简单分发脚本
ssh互信 [root@zphtest ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passp原创 2015-03-09 13:31:42 · 689 阅读 · 0 评论 -
Codis进程守护脚本
CodisProxy_Daemon.sh #!/bin/bash #CodisProxy Daemon Process ProcessName=codis-proxy SleepTime=10 CodisPath[9990]=/opt/codismem/conf_one/ CodisPath[9991]=/opt/codismem/conf_two/ CodisPath[9原创 2016-01-19 15:56:02 · 255 阅读 · 0 评论 -
[工具]Web连接测试
#!/usr/bin/env python # -*- coding: utf-8 -*- import os,sys import time import pycurl URL=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 · 411 阅读 · 0 评论 -
pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(pye原创 2017-06-01 11:57:54 · 180 阅读 · 0 评论