<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Kreny&apos;s Blog</title>
<link>http://weblog.kreny.com/</link>
<description>多锻炼身体，多健康身心; 培养一个爱好，坚持一个信念~~</description>
<language>en-us</language>
<copyright>Copyright 2007</copyright>
<lastBuildDate>Thu, 08 Mar 2007 10:12:41 +0900</lastBuildDate>
<pubDate>Sun, 15 Apr 2007 13:37:31 +0900</pubDate>
<generator>http://www.movabletype.org/?v=3.15</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs> 

<item>
<title>手动装 rpm</title>
<description>以前装错了rpm的版本，今天又犯了个很SB的错误，将rpm 给删了，没办法，只能手动装了。 rpm主页：http://wiki.rpm.org/GetSource 下载 rpm 的 source 需要 hg 来 clone 他的 repository, 发现没有安装 hg ，于是就去安装 mercurial。 mercurial主页：http://www.selenic.com/mercurial/ UnixInstall of Mercurial: http://www.selenic.com/mercurial/wiki/index.cgi/UnixInstall 又发现需要Python 2.3以上的版本，于是又去升级 python。./configure --enable-unicode=ucs4 make make install下载 rpm source:hg clone http://hg.rpm.org/接下来就 configure 和 make &amp;&amp; make install 了。 备注：如何解压 rpm 文件中的 files? rpm2cpio file.rpm | cpio -div...</description>
<link>http://weblog.kreny.com/archives/2007/03/e_rpm.html</link>
<guid>http://weblog.kreny.com/archives/2007/03/e_rpm.html</guid>
<category>Server Technol.</category>
<pubDate>Thu, 08 Mar 2007 10:12:41 +0900</pubDate>
</item>
<item>
<title>使用 up2date 对 Red Hat Network 连接上的问题</title>
<description>有一个很老版本的 Red Hat Enterprise Linux ES release 2.1 (Panama)，需要对其进行 up2date，但是由于 ssl 的认证过期，所以会出现以下问题：# rhn_register A socket error occurred: SSL_connect error, attempt#1 A socket error occurred: SSL_connect error, attempt#2 A socket error occurred: SSL_connect error, attempt#3安装了一些乱七八糟的 up2date 相关的 rpm 后会出现以下问题：SSL.Error: [(&apos;SSL routines&apos;, &apos;SSL3_GET_SERVER_CERTIFICATE&apos;, &apos;certificate verify failed&apos;)] Googlel了一下，发现Red Hat 已经为这些过期的 up2date 准备好了一个详细的下载网页： https://rhn.redhat.com/help/latest-up2date.pxt 这样对于任何一个版本的 Red Hat 都可以进行升级下载。...</description>
<link>http://weblog.kreny.com/archives/2007/02/aec_up2date_red.html</link>
<guid>http://weblog.kreny.com/archives/2007/02/aec_up2date_red.html</guid>
<category>Server Technol.</category>
<pubDate>Thu, 08 Feb 2007 16:38:19 +0900</pubDate>
</item>
<item>
<title>route命令笔记</title>
<description><![CDATA[关于添加网关的一些汇总 Linux 部分 网络环境：公司内有两个 Class C 网络： 有线Lan : 192.168.1.0/24 无线Lan : 192.168.2.0/24 主机中有两块网卡： 网卡1: eth0 ，　拥有一个 global IP 221.xxx.xxx.xxx 网卡1: eth1 ，　拥有一个 local&nbsp; IP 192.168.1.xxx 设置目标设置主机使得： 1) 从 global IP 来的 access 通过 default GW (Global IP GW) 返回 package 2) 从 local IP&nbsp; 来的 access 通过 192.168.1.10 返回 package...]]></description>
<link>http://weblog.kreny.com/archives/2006/11/routeaece.html</link>
<guid>http://weblog.kreny.com/archives/2006/11/routeaece.html</guid>
<category>Server Technol.</category>
<pubDate>Thu, 16 Nov 2006 19:28:02 +0900</pubDate>
</item>
<item>
<title>Trouble Shooting: kernel: Out of Memory: Killed process 123456 (mysqld)</title>
<description>现象：# tail /var/log/messages Sep 11 00:37:11 blog kernel: Out of Memory: Killed process 27089 (mysqld). Sep 11 00:37:11 blog kernel: Out of Memory: Killed process 27104 (mysqld). Sep 11 00:37:12 blog kernel: Out of Memory: Killed process 27105 (mysqld). Sep 11 00:37:14 blog kernel: Out of Memory: Killed process 27106 (mysqld). Sep 11 00:37:15 blog kernel: Out of Memory: Killed process 27107 (mysqld). Sep 11 00:37:15 blog kernel: Out of Memory: Killed process 27114 (mysqld). Sep 11 00:37:16 blog kernel:...</description>
<link>http://weblog.kreny.com/archives/2006/09/trouble_shootin.html</link>
<guid>http://weblog.kreny.com/archives/2006/09/trouble_shootin.html</guid>
<category>Server Technol.</category>
<pubDate>Sat, 16 Sep 2006 14:59:26 +0900</pubDate>
</item>
<item>
<title>[ZT]How to Repair a Corrupt MBR and boot into Linux </title>
<description>Original URL: http://linuxhelp.blogspot.com/2005/11/how-to-repair-corrupt-mbr-and-boot.html There are times when you inadvertently overwrite your Master Boot Record. The end result being that you are unable to boot into Linux. This is especially true when you are dual booting between windows and Linux OSes. Once when I was working in Windows XP, I accidentally clicked the hibernate button instead of shutdown. And windows somehow overwrote my MBR which housed the GRUB boot loader. At such times, it pays to have this cool tip at...</description>
<link>http://weblog.kreny.com/archives/2006/09/zthow_to_repair.html</link>
<guid>http://weblog.kreny.com/archives/2006/09/zthow_to_repair.html</guid>
<category>Server Technol.</category>
<pubDate>Wed, 13 Sep 2006 18:38:16 +0900</pubDate>
</item>
<item>
<title>通过SSH 使用 rsync 对系统的备份</title>
<description>rsync 主页 http://rsync.samba.org/ 使用ssh 传输rsync 流量具有下述优点：可通过网络加密数据，也可利用使用ssh 客户端密钥建立的任何信任关系。如果要在两台计算机之间保持大型、复杂目录结构的同步性（尤其是两者间的差异很小时），那么rsync 就是一种使用起来极为方便（并且执行速度很快）、随心所欲的工具。 参数：-e：通过 ssh 传递文件例：加上端口信息的ssh传输： -e &quot;ssh -p 2234&quot;--delete：删除目标副本中的文件和目录。默认情况下，rsync 只复制文件和目录，但如果从源主机删除了文件和目 录，那就不会从目标副本中删除这些文件和目录。要精确保存副本，须 包含 标志：root@rover:~# rsync -ave ssh greendome:/home/ftp/pub/ /home/ftp/pub/-v：是 verbose模式，输出更详细log。默认不输出这些信息。-a：archive模式。在做备份的时候必备这个参数。(并不代表打包目标副本。)-t：更新时间戳。-z：压缩模式。With this option, rsync compresses any data from the files that it sends to the destination machine. This option is useful on slow connections. The compression method used is the same method that gzip uses.-l：在目标服务器上重建主机上的link。-n, --dry-run：不实施任何传输。只是报告模拟的传输结果。...</description>
<link>http://weblog.kreny.com/archives/2006/08/rsync_cccae.html</link>
<guid>http://weblog.kreny.com/archives/2006/08/rsync_cccae.html</guid>
<category>Server Technol.</category>
<pubDate>Wed, 02 Aug 2006 21:26:54 +0900</pubDate>
</item>
<item>
<title>对E-mail的分解，提取邮件图片和文字等</title>
<description><![CDATA[<li>本文目的： 
在Linux下对邮件进行分解，并提取其中的图片和文字。</li>
<li>软件环境：
OS: Linux
App. : PHP,Qamil,Pear MIME,SHELL</li> 
<li>本文应用： 
多数可以使用在使用邮件向Blog投稿等。</li>]]></description>
<link>http://weblog.kreny.com/archives/2006/07/emailceieeaecc.html</link>
<guid>http://weblog.kreny.com/archives/2006/07/emailceieeaecc.html</guid>
<category>Server Technol.</category>
<pubDate>Wed, 12 Jul 2006 20:39:15 +0900</pubDate>
</item>
<item>
<title>转贴： vi的使用之汇总(By 张微波 ）</title>
<description>原文： http://blog.5ilinux.com/archives/2006/06/vi.html 功能最强在的编辑器——vi vi是所有UNIX系统都会提供的屏幕编辑器，它提供了一个视窗设备，通过它可以编辑文件。当然，对UNIX系统略有所知的人，或多或少都觉得vi超级难用，但vi是最基本的编辑器，所以希望读者能好好把它学起来，以后在UNIX世界里必将畅行无阻、游刃有余，因为其他几种文本处理器并非UNIX标准配备。说不定别人的Linux机器没安装joe或pico，如果您不会vi，那您可能就没辄了。 vi的基本概念 基本上vi可分为三种操作状态，分别是命令模式（Command mode）、插入模式（Insert mode）和底线命令模式（Last line mode），各模式的功能区分如下： 1． Comand mode：控制屏幕光标的移动，字符或光标的删除，移动复制某区段及进入Insert mode下，或者到Last line mode。 2． Insert mode：唯有在Insert mode下，才可做文字数据输入，按Esc等可回到Comand mode。 3． Last line mode：将储存文件或离开编辑器，也可设置编辑环境，如寻找字符串、列出行号等。 不过可以把vi简化成两个模式，即是将Last line mode也算入Command mode,把vi分成Command 和Insert mode。...</description>
<link>http://weblog.kreny.com/archives/2006/06/eeie_vicaecaeby.html</link>
<guid>http://weblog.kreny.com/archives/2006/06/eeie_vicaecaeby.html</guid>
<category>Server Technol.</category>
<pubDate>Fri, 16 Jun 2006 12:20:00 +0900</pubDate>
</item>
<item>
<title>转贴：[Oracle] Installing Oracle 9iR2 on RHEL AS 3 Step-by-Step</title>
<description>作者：Fenng 日期：03-Mar-2004 出处：http://www.dbanotes.net 版本：0.13 TITLE:Installing Oracle 9iR2 on Red Hat Enterprise Linux Advanced Server 3 (RHEL 3) 内容简介 介绍如何在Red Hat Enterprise Linux (RHEL) 3上安装Oracle数据库9iR2，并提供安装过程中需要的相关信息。关键词：Oracle ，9iR2， RHEL，Install，安装，Red Hat Enterprise Linux。 全球最大的 Linux 厂商 Red Hat 公司 最近发布了Red Hat Enterprise Linux 3。该版本号称有史以来最强大的开 源操作系统，也被视为是当前最为完整的 Linux 企业级解决方案。得到了包括 Oracle 在内的众多重量级厂商的积极响 应，很多产品在该平台上通过了认证。Oracle 9iR2自然也在此列。 Oracle 9i+ RHL3 会有什么样的效果?可能很多技术人员都很感兴趣。心动不如行动，不如马上开始搭建自己的应用环境，亲身感受一下。...</description>
<link>http://weblog.kreny.com/archives/2006/05/eeieoracle_inst.html</link>
<guid>http://weblog.kreny.com/archives/2006/05/eeieoracle_inst.html</guid>
<category>Server Technol.</category>
<pubDate>Thu, 25 May 2006 19:34:31 +0900</pubDate>
</item>
<item>
<title>Oracle 9i 9.2.0.4.0 on Redhat Enterprise Linux 3</title>
<description>在 Redhat Enterprise Linux 3 上安装了好几次 Oracle 9i(2.0.4.0) 了，就是忘记了以下的几个 trouble shooting. Specifation:OS ：RedHat Enterprise Linux ES3 update6 ORACLE ：Oracle9i Database Release2 (9.2.0.4.0) for Linux 1) 在运行我的 shell 以后(即建立完毕必要的用户和环境变量)，立刻运行了 CD-Rom 里面的 runinstall,却发现以下错误信息：Error occurred during initialization of VM Unable to load native library: /tmp/OraInstall2003-10-25_03-14-57PM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference Google 了以下，发现原来是需要打一个补丁： To resolve the __libc_wait symbol issue, download the p3006854_9204 patch p3006854_9204_LINUX.zip from http://metalink.oracle.com. See bug 3006854 for more information. To apply the patch,...</description>
<link>http://weblog.kreny.com/archives/2006/05/oracle_9i_92040.html</link>
<guid>http://weblog.kreny.com/archives/2006/05/oracle_9i_92040.html</guid>
<category>Server Technol.</category>
<pubDate>Tue, 23 May 2006 21:10:51 +0900</pubDate>
</item>
<item>
<title>MySQL的一些工具</title>
<description>工作上需要写一些database的定义书。找来几个比较使用的可以export table 定义书的工具。但是要注意一点，版本只是限定在MySQL 3.23版本。 MySQL 3.23.58 Server &amp; Client 「Common SQL Environment ver1.59」 http://www.hi-ho.ne.jp/tsumiki/ winclients-3.22.28的libmySQL.dll http://www.softagency.co.jp/mysql/pro/win_winclients.html 以上是针对日语的版本。另外一些公用的: MySQL Administrator http://dev.mysql.com/downloads/administrator/...</description>
<link>http://weblog.kreny.com/archives/2006/03/mysqlcaeae.html</link>
<guid>http://weblog.kreny.com/archives/2006/03/mysqlcaeae.html</guid>
<category>Server Technol.</category>
<pubDate>Tue, 14 Mar 2006 16:26:25 +0900</pubDate>
</item>
<item>
<title>[转贴]网站测试技术简介</title>
<description>作者:丁来庆 出处：超越PHP http://www.phpe.net/articles/321.shtml 1 概述 在一个软件项目开发中，系统测试是保证整体项目质量的重要一环，本文将就网站的测试技术及相应的自动测试工具做一个简要的介绍。主要就如下几个方面进行探讨： * 功能测试 * 性能测试 * 安全性测试 * 稳定性测试 * 浏览器兼容性测试 * 可用性/易用性测试 * 链接测试 * 代码合法性测试...</description>
<link>http://weblog.kreny.com/archives/2006/03/eeccecae.html</link>
<guid>http://weblog.kreny.com/archives/2006/03/eeccecae.html</guid>
<category>Server Technol.</category>
<pubDate>Mon, 06 Mar 2006 00:40:49 +0900</pubDate>
</item>
<item>
<title>安装记录：hp Proliant DL380 和 Red Hat Enterprise Linux 3.0</title>
<description>SpecificationMachine: HP ProLiant DL380 G4 (Raid 1) OS: Red Hat Enterprise Linux ES 3.0 (No update) Oracle: Oracle9i Database Release 2 (9.2.0.4.0) JP Trouble Shooting: 无法识别硬盘 在安装 Red Hat ES 3.0 时，出现以下错误信息：No hard drives have been found. You probably need to manually choose device drivers for the installtion to succeed. Would you like to select drivers now? 同时尝试了 Fedora 3 和 RHEL 4，发现不会出现以上问题并能够正常安装。...</description>
<link>http://weblog.kreny.com/archives/2006/03/eeiehp_proliant.html</link>
<guid>http://weblog.kreny.com/archives/2006/03/eeiehp_proliant.html</guid>
<category>Server Technol.</category>
<pubDate>Fri, 03 Mar 2006 17:41:37 +0900</pubDate>
</item>
<item>
<title>phpMyAdmin 的字符显示问题</title>
<description>phpMyAdmin 版本 phpMyAdmin-2.7.0-pl2 MySQL 版本： 4.1.14-log MySQL 的 my.cnf 文件设置： [msyqld] 和 [mysql] 的默认值 default-character-set=latin1 (不需要填写) MySQL shell 的设置确认：mysql&gt; show variables; +---------------------------------+----------------------------------------+ | Variable_name | Value | +---------------------------------+----------------------------------------+ ... | character_set_client | latin1 | | character_set_connection | latin1 | | character_set_database | latin1 | | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | /usr/local/mysql/share/mysql/charsets/ | | collation_connection | latin1_swedish_ci | | collation_database | latin1_swedish_ci | | collation_server | latin1_swedish_ci | ......</description>
<link>http://weblog.kreny.com/archives/2006/02/phpmyadmin_ccce.html</link>
<guid>http://weblog.kreny.com/archives/2006/02/phpmyadmin_ccce.html</guid>
<category>Server Technol.</category>
<pubDate>Fri, 24 Feb 2006 14:33:20 +0900</pubDate>
</item>
<item>
<title>[转贴]用PHP函数解决SQL injection(关于magic_quotes_gpc) </title>
<description><![CDATA[作者:lm92 来源:CSDN 出处：http://www.phpe.net/articles/372.shtml SQL injection问题在ASP上可是闹得沸沸扬扬当然还有不少国内外著名的PHP程序“遇难”。至于SQL injection的详情，网上的文章太多了，在此就不作介绍。 如果你网站空间的php.ini文件里的magic_quotes_gpc设成了off，那么PHP就不会在敏感字符前加上反斜杠（\），由于表单提交的内容可能含有敏感字符，如单引号（'），就导致了SQL injection的漏洞。在这种情况下，我们可以用addslashes()来解决问题，它会自动在敏感字符前添加反斜杠。 但是，上面的方法只适用于magic_quotes_gpc=Off的情况。作为一个开发者，你不知道每个用户的magic_quotes_gpc是On还是Off，如果把全部的数据都用上addslashes()，那不是“滥杀无辜”了？假如magic_quotes_gpc=On，并且又用了addslashes()函数，那让我们来看看： &lt;?php //如果从表单提交一个变量$_POST['message']，内容为 Tom's book //这此加入连接MySQL数据库的代码，自己写吧 //在$_POST['message']的敏感字符前加上反斜杠 $_POST['message'] = addslashes($_POST['message']); //由于magic_quotes_gpc=On，所以又一次在敏感字符前加反斜杠 $sql = "INSERT INTO msg_table VALUE('$_POST[message]');"; //发送请求，把内容保存到数据库内 $query = mysql_query($sql); //如果你再从数据库内提取这个记录并输出，就会看到 Tom\'s book ?>...]]></description>
<link>http://weblog.kreny.com/archives/2006/02/eecphpesql_inje.html</link>
<guid>http://weblog.kreny.com/archives/2006/02/eecphpesql_inje.html</guid>
<category>Server Technol.</category>
<pubDate>Sat, 18 Feb 2006 00:15:39 +0900</pubDate>
</item>


</channel>
</rss>