<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[清草离原]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/shw2004</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; shw2004]]></copyright><item><title><![CDATA[linux下tomcat作为daemon运行]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5782318</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5782318</guid><author>shw2004</author><pubDate>Mon, 02 Aug 2010 11:33:00 +0800</pubDate><description><![CDATA[<br />在linux下如果想让tomcat在开机时自启动，可以将启动代码写到/etc/rc.local里面。但是，这样的话，tomcat将以root权限运行，这是不安全的。因此，要想办法让tomcat以非特权身份作为daemon运行。<br />要将tomcat作为linux的daemon运行，需要commons-daemon工程的jsvc工具，tomcat的bin目录里已经自带了这个工具的源码。<br />解压commons-daemon-native.tar.gz，进入unix子目录，然后confi]]></description><category></category></item><item><title><![CDATA[为已编译的apache2添加mod_proxy模块]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5781302</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5781302</guid><author>shw2004</author><pubDate>Sun, 01 Aug 2010 19:28:00 +0800</pubDate><description><![CDATA[查看apache支持的模块：        httpd -l     查看apache载入的模块：        httpd -t -D DUMP_MODULES    使用apache扩展工具apxs可以为apache编译和安装扩展模块。新安装的模块将作为动态共享对象提供给apache，因此，apache运行的平台必须支持DSO特性，并且httpd必须内建mod_so模块。这样才能使用mod_so提供的LoadModule指令在运行时将模块加载到apache服务器中。    要为已运行的apach]]></description><category></category></item><item><title><![CDATA[Linux Buffers和Cached的区别]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5747381</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5747381</guid><author>shw2004</author><pubDate>Mon, 19 Jul 2010 20:20:00 +0800</pubDate><description><![CDATA[<br />在linux下使用free命令查看内存使用情况，有buffers和cached两项，以下是它们的区别：<br />    buffers是为块设备设计的缓冲。比如磁盘读写，把分散的写操作集中进行，减少磁盘I/O，从而提高系统性能。比如入U盘里cp一个文件，但是U盘读写指示灯未闪动，过了一会儿才闪动。卸载时会清空缓冲，所以有时卸载一个设备需要等待几秒。<br />    cached是缓存读取过的内容，下次再读时，如果在缓存中命中，则直接从缓存读取，否则读取磁盘。由于缓存空间有限，过一段时间以后没]]></description><category></category></item><item><title><![CDATA[mysql 5 编译安装]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5733176</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5733176</guid><author>shw2004</author><pubDate>Wed, 14 Jul 2010 03:45:00 +0800</pubDate><description><![CDATA[安装环境Debain5.configure时出错：    /bin/rm: cannot remove `libtoolT': No such file or directory解决方法，在执行./configure 之前，先执行：    # autoreconf --force --install    # libtoolize --automake --force    # automake --force --add-missing]]></description><category></category></item><item><title><![CDATA[apache2 + WebDAV + svn 1.6安装配置]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5733155</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5733155</guid><author>shw2004</author><pubDate>Wed, 14 Jul 2010 02:14:00 +0800</pubDate><description><![CDATA[一、安装apache21. 从apache的源码目录里面找到apr和apr-util单独安装，以便subversion安装时使用  进入apr目录:    ./configure --prefix=/usr/local/apr    make    make test    make install  进入apr-util目录：    ./configure --prefix=/usr/local/apr-util    make    make test    make install2. 安装apach]]></description><category></category></item><item><title><![CDATA[Java常量池——Integer]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5678703</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5678703</guid><author>shw2004</author><pubDate>Fri, 18 Jun 2010 17:10:00 +0800</pubDate><description><![CDATA[Java的8种基本类型(Byte, Short, Integer, Long, Character, Boolean, Float, Double), 除Float和Double以外, 其它六种都实现了常量池, 但是它们只在大于等于-128并且小于等于127时才使用常量池。由如下例子可以看出：	public static void main(String[] args) {
		Integer a = 127;
		Integer b = 127;
		System.out.println("等于12]]></description><category></category></item><item><title><![CDATA[Debian5静态IP设置]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5652920</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5652920</guid><author>shw2004</author><pubDate>Mon, 07 Jun 2010 14:14:00 +0800</pubDate><description><![CDATA[<br />配置文件 /etc/network/interfaces<br />auto lo
iface lo inet loopback            #lo 是本地回环地址：127.1

auto eth0 
iface eth0 inet static 
address 192.168.1.152 
gateway 192.168.1.1 
netmask 255.255.255.0 
network 192.168.1.0 
broadcast 192.168.1.255]]></description><category></category></item><item><title><![CDATA[mysql中文编码与默认InnoDB引擎]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5652904</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5652904</guid><author>shw2004</author><pubDate>Mon, 07 Jun 2010 14:06:00 +0800</pubDate><description><![CDATA[<br />配置文件 /etc/mysql/my.cnf <br /><br />在[client]和[mysqld]里面加上<br />default-character-set=utf8  <br />重启mysql <br />sudo /etc/init.d/mysql restart (start, stop)  
<br />用mysql命令连接到mysql server, 用下面的命令查看当前字符集：<br />show variables like "%char%";  <br />要设置]]></description><category></category></item><item><title><![CDATA[Duration, Scope, Linkage in C]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5652809</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5652809</guid><author>shw2004</author><pubDate>Mon, 07 Jun 2010 13:25:00 +0800</pubDate><description><![CDATA[首先，declaration分为两种：external declaration(在函数外的声明) 和internal declaration(在函数内的声明)。由于不能在函数内定义函数，因此函数定义总是external declaration。     接下来明确storage class specifier，有4种storage class specifier：auto, extern, register, static。其中只有register可以用在function prototype和fun]]></description><category></category></item><item><title><![CDATA[Problems About Rearrangement for Expressions in C]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5652769</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5652769</guid><author>shw2004</author><pubDate>Mon, 07 Jun 2010 13:03:00 +0800</pubDate><description><![CDATA[<br />一些数学法则(如：结合律，分配律等)在C语言表达式中通常是不适用的。 <br />比如下面的代码段：<br />double x, y, z;
/* ... */
x = (x * y) * z;                     // not equivalent to x *= y * z;
z = (x - y) + y ;                    // not equivalent to z = x;
z = x + x * y;]]></description><category></category></item><item><title><![CDATA[C语言自动变量的潜在问题]]></title><link>https://blog.youkuaiyun.com/shw2004/article/details/5652756</link><guid>https://blog.youkuaiyun.com/shw2004/article/details/5652756</guid><author>shw2004</author><pubDate>Mon, 07 Jun 2010 12:56:00 +0800</pubDate><description><![CDATA[<br />关于C语言自动变量的一个基本规则是：声明自动变量的函数已经返回后，不能再引用这些自动变量。 <br /><br />下面就此问题进行测试。 <br />测试环境： 
<br />    编译器：GCC 4.2.4 <br />    OS：Ubuntu 8.04 LTS 
<br /><br />首先编写一个简单的C程序，暂且命名为test_auto_val.c。 <br />#include <stdio.h>
int*
func1 ()
{
	int *ptr;
	int va]]></description><category></category></item></channel></rss>