Redis配置文件模板

话说redis.io改版后,好多东西都找不到了,比如redis的配置模板,我摘抄了一份如下,大家可以点击这里看最新的。

redis.conf
# Redis configuration file example

# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k =>[......]

继续阅读

Debian 6下安装JDK

在Debian(6及以下版本)的默认源中,并没有默认包含JDK,我们需要从non-free源中找到它。
1、设置源
确认你的apt源包含了non-free,类似如下的:
sudo vim /etc/apt/sources.list
deb http://debian.cn99.com/debian/ testing main contrib non-free
deb-src http://debian.cn99.com/debian/ testing main contrib non-[......]

继续阅读

Python+Win环境下twisted的配置

将Twisted配置好后,import居然都没法使用,提示ImportError: No module named zope.interface
查了一下,原来是twisted需要zope.interface的依赖,汗。。
1、下载
http://pypi.python.org/pypi/zope.interface#downloads
选择zope.interface-3.6.1.tar.gz就好。
2、解压缩、安装
python setup.py install
搞定。[......]

继续阅读