Archive for March, 2010

JDK 在 Linux 安装

March 26th, 2010

Sun发布的JDK/JRE有两种版本,一种是.rpm.bin格式的,另一种则是.bin格式的,前者我没有试,但是我想应该是适合于rpm的,可能会安装到/usr里面去,而且自动化程度可以高一些。后者则完全是绿色软件,只是做一个解压的动作。下面我就来讲后者的安装全攻略。

» Read more: JDK 在 Linux 安装

How To Install RED5 Server on Centos 5.3

March 26th, 2010

In this how to i will describe how to install RED5 server on Centos 5.3. This how to can be used to install RED5 server on Centos 4 and Fedora 8 – 11 as well. RED5 is open source flash server written in java supports streaming audio/video, recording client streams, shared objects, live stream publishing etc. » Read more: How To Install RED5 Server on Centos 5.3

PHP & memcached

March 23rd, 2010

一、memcached 简介

在很多场合,我们都会听到 memcached 这个名字,但很多同学只是听过,并没有用过或实际了解过,只知道它是一个很不错的东东。这里简单介绍一下,memcached 是高效、快速的分布式内存对象缓存系统,主要用于加速 WEB 动态应用程序。

» Read more: PHP & memcached

自动ping php代码

March 22nd, 2010

什么是Ping服务?
ping是基于XML_RPC标准协议的更新通告服务,是用于blog在内容更新时通知blogsearch及时进行抓取、更新的方式。blogsearch在成功接受到ping以后,会立刻进行抓取并更新。使用ping服务,可以让blogsearch在第一时间抓取到您博客上的新内容。

» Read more: 自动ping php代码

post-commit,hooks 让svn服务器与测试环境的代码保持一致

March 19th, 2010

由于网站上线,需要把新添加功能上传到测试环境进行测试,以前用FTP直接上传,但由于程序员和美工每天有大量的修改,如果总是用FTP太耗时耗精力,进而增加svn进行commit时,测试环境即时更新的功能。
首先:在库文件的hooks下新建post-commit文件。
其次:在post-commit文件里添加
#!/bin/sh
cd /usr/local/www //网站根目录
SVN=/usr/local/bin/svn //svn命令所在路径
WEB=/usr/local/www 
export LANG = en_US.UTF-8
chmod -R 777 /usr/local/www //权限 改为目录为apache所有也可 chown -R apache.apache /lusr/local/www
$SVN update --username lober --password 666666 $WEB //第一次运行前必须su apache用户,把文件checkout到网站目录一次,保存一下提示的用户名和密码,否则,会出现错误

最后提醒权限问题:
chown -R apache.apache /usr/local/www
chmod -R 777 /usr/local/www   //可选
chown -R apache.apache /var/svn/post-commit
chmod -R 777 /var/svn/post-commit //可选

» Read more: post-commit,hooks 让svn服务器与测试环境的代码保持一致

发表文章时自动ping搜索引擎

March 19th, 2010

增加发表日志自动给搜索引擎ping的功能!这样每次你发表文章后,博客会自动ping各个搜索引擎,可以让搜索引擎更快的收录你的文章。

» Read more: 发表文章时自动ping搜索引擎

搜索引擎ping服务

March 19th, 2010

1、什么是Ping服务

  Ping服务,也称更新通知服务,是搜索引擎发现网友博客更新的一种方式。

» Read more: 搜索引擎ping服务

php下fckedit图片加水印

March 17th, 2010

fckeditor\editor\filemanager\upload\php\upload.php

fckeditor\editor\filemanager\browser\default\connectors\php\commands.php

» Read more: php下fckedit图片加水印

linux下安装基于Apache的Subversion服务器mod_dav_svn.so: undefined symbol: dav_register_provider解决

March 17th, 2010

Apache下整合的SVN,由于自己需要加modules,就重新./configure,make make install后启动apache出现如下错误:
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_dav_svn.so into server: /usr/local/apache2/modules/mod_dav_svn.so: undefined symbol: dav_register_provider

» Read more: linux下安装基于Apache的Subversion服务器mod_dav_svn.so: undefined symbol: dav_register_provider解决

windows下安装基于Apache的Subversion服务器

March 9th, 2010

my:

找到文件

libapr-1.dll
libaprutil-1.dll
libsvn_delta-1.dll
libsvn_fs-1.dll
libsvn_repos-1.dll
libsvn_subr-1.dll

» Read more: windows下安装基于Apache的Subversion服务器