存档在 ‘开源软件’ 分类

什么是原生态Linux操作系统?

2011年3月11日

按照中国联通的说法,原生态Linux操作系统是什么,我们并不知道。但是,华尔街日报将其翻译为“the origional Linux operating system”,就有点意思了,与我个人喜欢使用的“原汁原味Linux”定语的含义差不多。那么,什么是原生态Linux操作系统呢?

» 阅读更多: 什么是原生态Linux操作系统?

我怎么能下设置多个redmines之一的apache2.2

2011年3月10日

How can i setup multiple redmines under one domain with apache2.2?

Assuming you’re using an apache/mongrel set up like the one described in HowTo_run_Redmine_with_a_Mongrel_cluster, use something like this in your apache config should work. Though I haven’t tried it myself. Also note that redmine supports multiple projects, so something the urls that you’re using don’t make a lot of sense. I could understand if you wanted separate redmines per client or something though, so hopefully this helps. There may also be some way to cut down on the duplication, but I’d probably focus on just getting it working first. Good luck!

 » 阅读更多: 我怎么能下设置多个redmines之一的apache2.2

php下添加pdo_mysql扩展

2011年3月3日

# wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
# tar xzvf PDO_MYSQL-1.0.2.tgz
# cd PDO_MYSQL-1.0.2
# /usr/local/php/bin/phpize » 阅读更多: php下添加pdo_mysql扩展

linux下php扩展pdo编译安装

2011年3月3日

linux下的php扩展与windows下的扩展安装有些不同。下面就拿在linux下扩展php的pdo,pdo_mysql模块来说明一下 » 阅读更多: linux下php扩展pdo编译安装

使用smokeping监测网络

2011年3月2日


一、介绍

smokepingrrdtool的作者Tobi Oetiker的作品,所以它在图形显示方面有很大优势,也是一个很有特点的opensource工具:

多种探测方式,包括fping、echoping、dig、curl等;
易用可扩展的插件;
master/slave的工作方式,可以在多个节点收集同一个监测点的数据;
很有特色的alert设置,不只是简单的设置一个阀值;

smokeping当前的版本是2.4.2,本文也是基于这个版本。

» 阅读更多: 使用smokeping监测网络

CentOS 5 64位安装php-fpm全过程

2010年12月16日

安装库文件

安装编译php需要的一些库文件

yum install libxml2-devel libmcrypt-devel openssl-devel curl-devel libjpeg-devel  libpng-devel freetype-devel openldap-devel libmhash-devel mysql-devel  libtool-ltdl-devel

如果是64位的系统,然后需要调整一下mysql的库文件,否则在64位系统下老去找32位的mysql库:
cd /usr/lib
mv mysql mysql.i386
ln -sf /usr/lib64/mysql mysql

» 阅读更多: CentOS 5 64位安装php-fpm全过程

Linux下的Memcache安装

2010年12月9日

最近在研究怎么让Discuz!去应用Memcache去做一些事情,记录下Memcache安装的过程。

Linux下Memcache服务器端的安装
服务器端主要是安装memcache服务器端,目前的最新版本是 memcached-1.3.0 。
下载:http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz
另外,Memcache用到了libevent这个库用于Socket的处理,所以还需要安装libevent,libevent的最新版本是libevent-1.3。(如果你的系统已经安装了libevent,可以不用安装)
官网:http://www.monkey.org/~provos/libevent/
下载:http://www.monkey.org/~provos/libevent-1.3.tar.gz

» 阅读更多: Linux下的Memcache安装

Subversion权限控制手册

2010年11月16日

 

Subversion权限控制手册

        在文章《Subversion详细说明》中,我们曾经建立了一个版本控制仓库,现在打开这个版本控制仓库,让我们来看看这个目录结构,

Subversion权限控制手册 - zjw-159 - 我的博客

我们会在目录结构中找到一个叫做conf的文件夹,打开这个文件夹,你会看到三个文件,分别叫做authz,passwd,svnserve.conf。

» 阅读更多: Subversion权限控制手册

通过shell+crontab实现自动分割nginx日志

2010年9月11日

月影鹏鹏今天又对nginx分割一下日志,一开始上线的技术没注意这个工作,结果不久日志文件就上G了,很痛苦。分割日志很简单,首先把日志文件复制到别的地方,然后再通知nginx重新生成日志就可以了。shell脚本如下:

» 阅读更多: 通过shell+crontab实现自动分割nginx日志

postfix+with+amavis+and+mysql

2010年9月11日

If you are using RHEL and would like to install PostfixAdmin then here are the steps.

The default RPM does not have mysql support, but you can use an RPM build for centos. I used wget to fetch from here:

  » 阅读更多: postfix+with+amavis+and+mysql