天道酬勤

RDBMS and My Life

Archive for May, 2009

I’m a Geek

leave a comment

Geek(极客)是什么?先来看看维基百科的解释

极客,又译为技客、奇客,是英文单词geek的音译。原本的俚语是指反常的人,畸形人,野人。这个词在“美国俚语”中意指智力超群,善于钻研但不懂与人交往的学者或知识分子,含有贬义。贬义的定义是指一个人醉心于自己感兴趣的领域,而甚至可以牺牲个人卫生,社交技巧 和/或 社会地位。但近年来,随着互联网文化兴起,其贬义的成分正慢慢减少。但这个词仍保留了拥有超群的智力和努力的本意,又通常被用于形容对计算机和网络技术有狂热兴趣并投入大量时间钻研的人。所以俗称发烧友或怪杰。例如:computer geek 电脑怪杰,techno-geek 技术/科技怪杰 gamer geek 玩家怪杰 等。

这里还有网络上更详细的说明

google上搜索geek,无意中发现了Geek商店的文化衫,觉得很有意思,商店正好也在深圳,而且价格跟一件普通T-shirt的价格差不多,正准备要去买T恤,所以订购了二件,一件twitter,一件web的。我在想,当我穿出去的时候,不知道大家会用什么样的眼光看我,哈哈,不知道质量怎么样,期待中……

不多说了,上PP

-The End-

Written by ochef

May 25th, 2009 at 10:48 pm

Posted in Life

Tagged with

LAMP应用环境安装指南Ⅲ–PHP

leave a comment

LAMP应用环境安装指南Ⅰ–MySQL

LAMP应用环境安装指南Ⅱ–Apache

PHP的安装

1.下载安装php支持包

(1) GD2

# cd /usr/local/src

#wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.41.tar.gz

#cd GD-2.41

#perl Makefile.PL

#make; make install

(2) LibXML2

# cd /usr/local/src

#wget http://www.xmlsoft.org/sources/libxml2-2.6.30.tar.gz

# tar xzvf libxml2-2.6.30.tar.gz

# cd libxml2-2.6.30

# ./configure –prefix=/usr/local/libxml2

# make; make install

2.编译安装

#cd /usr/local/src

#wget http://cn.php.net/distributions/php-5.2.9.tar.gz

# tar -zvxf php-5.2.9.tar.gz

# cd php-5.2.9

#./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd –enable-gd-native-ttf –with-jpeg-dir –with-png-dir –with-bz2 –with-freetype-dir –with-iconv-dir –with-zlib –enable-mbstring –with-mcrypt –disable-ipv6 –disable-cgi –disable-cli

Read the rest of this entry »

Written by ochef

May 24th, 2009 at 11:15 pm

Posted in LAMP

Tagged with

LAMP应用环境安装指南Ⅱ–Apache

leave a comment

LAMP应用环境安装指南Ⅰ–MySQL

LAMP应用环境安装指南Ⅲ–PHP

Apache的安装:

1. Apache日志截断程序,Linux下运行的Web服务器Apache,默认日志文件是不分割的,一个整文件既不易于管理,也不易于分析统计。安装cronolog后,可以将日志文件按时间分割,易于管理和分析。

# cd /usr/local/src

#wget http://cronolog.org/download/cronolog-1.6.2.tar.gz

# tar xzvf cronolog-1.6.2.tar.gz

# cd cronolog-1.6.2

# ./configure –prefix=/usr/local/cronolog

# make; make install

2.下载httpd源码包

#cd /usr/local/src

#wget http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.2.11.tar.gz

#tar xzvf httpd-2.2.11.tar.gz

#cd httpd-2.2.11

3. 编译安装

#./configure –prefix=/usr/local/apache2 –enable-module=so –enable-deflate=shared –enable-expires=shared –enable-rewrite=shared –enable-static-support –enable-static-htpasswd –enable-static-htdigest –enable-static-rotatelogs –enable-static-logresolve –enable-static-htdbm –enable-static-ab –enable-static-checkgid –disable-userdir

#make;make install

#echo “/usr/local/apache2/bin/apachectl start” >> /etc/rc.local (系统启动时服务自动启动)

-The End-

Written by ochef

May 24th, 2009 at 10:59 pm

Posted in LAMP

Tagged with

LAMP应用环境安装指南Ⅰ–MySQL

leave a comment

LAMP应用环境安装指南Ⅱ–Apache

LAMP应用环境安装指南Ⅲ–PHP

安装环境:VMWare + RedHat Linux AS5U2

Linux的安装过程比较简单这里就不在赘述了。为了避免实验中不必要的麻烦,建议大家在安装的时候将SELinuxSELinux linux 系统中一个强制性的安全机制)、iptables等服务禁用掉,如果在安装Linux的时候忘记了也可以用如下的方法:

# vi /etc/selinux/conifg

SELINUX=enforcing改成SELINUX=disabled即可。

MySQL的安装:

1.下载mysql源码包并解压

#cd /usr/local/src

#tar xzvf mysql-5.1.30.tar.gz

#cd mysql-5.1.30

2.创建mysql用户、组

#groupadd mysql

#useradd -g mysql -s /bin/false -M mysql

3.编译安装

#./configure –prefix=/usr/local/mysql –localstatedir=/var/lib/mysql –with-comment=Source –with-server-suffix=Comsenz –with-mysqld-user=mysql –without-debug –with-big-tables –with-charset=gbk –with-collation=gbk_chinese_ci –with-extra-charsets=all –with-pthread –enable-static –enable-thread-safe-client –with-client-ldflags=-all-static –with-mysqld-ldflags=-all-static –enable-assembler –without-ndb-debug

如果编译成功,你会看到:Thank you for choosing MySQL!

#make;make install

Read the rest of this entry »

Written by ochef

May 24th, 2009 at 10:21 pm

Posted in LAMP

Tagged with