原创 我的友情鏈接
51CTO博客開發
原创 test
asd
原创 redis學習
由於公司的遊戲服務器數據庫一部分用的是redis,所以閒下來研究下 1.安裝 wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz tar xf redis-2.4.17.ta
原创 python scp傳文件
#!/usr/bin/python import pexpect import getpass host=raw_input('hostname: ') remote_path=raw_input('remote_path: '
原创 喂數據給graphite
初學graphite,我想把統計的連接數以圖的形式展現出來,由於連接數的種類的不止一種,所以不能用簡單的nc發送,需要發送給carbon。參考官網http://graphite.readthedocs.org/en/latest/f
原创 linux 自動化安裝smokeping
#!/bin/sh src_dir=/usr/src start_time(){ start_time="$(date +%s)" echo -e "\033[35;1m$(date) Start install!\033[0m"
原创 python socket 實現遠程執行命令 上傳 下載文件
client端:#!/usr/bin/env python import socket,time,os import rlcompleter h,p="192.168.220.130",12346 sock=socket.socke
原创 sersync同步文件
1.安裝sersync sersync詳細介紹請看http://hi.baidu.com/johntech/item/a4a2060ecf3053c6905718e1 sersync下載地址http://code.google.com/p
原创 /etc/init.d/functions
functions這個腳本是給/etc/init.d裏邊的文件使用的。提 供了一些基礎的功能,看看裏邊究竟有些什麼。首先會設置umask,path,還有語言環境,然後會設置 success,failure,warning,normal幾種情
原创 rsync 備份文件
1.rsync特性 可以鏡像保存整個目錄樹和文件系統 可以增量同步數據,文件傳輸效率高,同步時間短 可以保持原有文件的權限、時間等屬性 可以通過ssh加密傳輸 支持匿名傳輸 2.利用rsync搭建遠程備份系統 a:192.168.21.13
原创 python fabric模塊使用錯誤
今天在使用fabric模塊時,報出一個錯誤:from Crypto.Util.number import ceil_shift, exact_log2, exact_div File "/usr/lib/python2.6/site-
原创 python下載ftp文件
#!/usr/bin/python import ftplib host='192.168.1.116' dir='/printer' file='S28BW-412110613520.pdf' username='pub' pas
原创 test
asd
原创 redis學習
由於公司的遊戲服務器數據庫一部分用的是redis,所以閒下來研究下 1.安裝 wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz tar xf redis-2.4.17.ta
原创 我的友情鏈接
51CTO博客開發