最近在做开发和办公环境的高可用,采用的是keepalived;keepalived基于Linux内核支持的LVS,既能实现高可用,又能实现负载均衡,非常实用。keepalived监控服务状态时可以用多种方式,如:HTTP_GET|SSL_GET|TCP_CHECK|SMTP_CHECK|MISC_C...
分类:
移动开发 时间:
2015-06-09 11:42:50
阅读次数:
237
#Formoreinformationaboutthisfile,seethemanpages
#ntp.conf(5),ntp_acc(5),ntp_auth(5),ntp_clock(5),ntp_misc(5),ntp_mon(5).
driftfile/var/lib/ntp/drift
#Permittimesynchronizationwithourtimesource,butdonot
#permitthesourcetoqueryormodifytheserviceonthissystem.
..
分类:
系统相关 时间:
2015-06-08 19:50:25
阅读次数:
191
系统是centos6.5x64位系统rm文件删除之后,恢复比较麻烦。可以使用extundelete进行恢复目前最新版本是0.2.4extundelete主页:http://extundelete.sourceforge.net/下载软件wgethttp://fossies.org/linux/misc/extundelete-0.2.4.tar.gz安装组件yuminstall-ye2fsprogse2fsprogs-..
分类:
其他好文 时间:
2015-06-08 19:50:14
阅读次数:
843
wpa_supplicant -d -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -iwlan0 -B 会在/data/misc/wifi/下产生一个wlan0的目录ctrl_interface=wlan0#ctrl_interface_group....
分类:
其他好文 时间:
2015-06-08 17:12:21
阅读次数:
289
非季节性数据的时间序列分解数据http://robjhyndman.com/tsdldata/misc/kings.dat分析非季节性的数据包含两个组成成分,分别为随机噪声和趋势。为了能使用加性模型(Additive Model)描述非季节性数据的趋势成分,我们使用平滑法(SMA)来计算一个时间序列的移动平均。在使用SMA计算时间序列的移动平均值时,需设定跨度n。R代码library("TTR")...
分类:
其他好文 时间:
2015-06-05 00:50:13
阅读次数:
203
服务端rhel6mkdir/zourpm-qa|grepautofsvim/etc/auto.master/zou/etc/auto.zou这里的/zou是没有建立的,其会自动建立cp/etc/auto.misc/etc/auto.zouvim/etc/auto.zou*-rw,soft,intr192.168.0.1:/zou/&/etc/init.d/autofsrestart这样在服务器上新建立的文件,都可以在客户端..
分类:
其他好文 时间:
2015-06-04 17:23:48
阅读次数:
143
from scipy import misc
import matplotlib.pyplot as plt
lena=misc.lena();print lena.shape
lena2=lena.repeat(3,axis=0).repeat(2,axis=1);print lena2.shape #resize
plt.figure(0)
plt.subplot(211)
plt.imsh...
分类:
其他好文 时间:
2015-06-04 17:12:10
阅读次数:
197
package com.huowolf.Util;
import java.security.MessageDigest;
import sun.misc.BASE64Encoder;
public class MD5Util {
public static String encode(String message) {
try {
MessageDigest md = Mess...
分类:
其他好文 时间:
2015-06-04 13:49:26
阅读次数:
106
Redhat配置vncserver#yuminstallxorg-x11-fonts-misc(或rpm安装)#rpm-ivnc-server-4.1.2-14.el5_6.6.x86_64.rpm(需要从网上下)#vncserver(需记下生成的序号如“:1”)两次密码#vi.vnc/xstartup按a进入编辑模式#!/bin/sh#Uncommentthefollowingtwolinesfornormaldesktop:un..
分类:
其他好文 时间:
2015-06-03 19:48:39
阅读次数:
152
一、使用pdb python -mpdb script.py 二、使用gdb
需首先配置gdb pythin支持,步骤如下:
1、修改Python-2.6/Misc/gdbinit,将
while $_i f_nlocals
修改为
while $_i f_code->co_nlocals
2、在文...
分类:
编程语言 时间:
2015-05-30 11:56:19
阅读次数:
226