乌秋博客
梦想在左,生活在右。   

Debian下安装Red5
Red5,强大的开源的视频服务器,搭建视频聊天室和视频网站必须的东东。主要是免费的,哈哈,对我这个穷IT人来说,超稀饭!

到sun官网下载jdk-6u25-linux-i586.bin
# chmod +x jdk-6u25-linux-i586.bin
# ./jdk-6u25-linux-i586.bin
# mv jdk1.6.0_25 /usr/local/
# ln -s /usr/local/jdk1.6.0_25 /usr/local/jdk
# vi /root/.bashrc

添加如下内容:

export JAVA_HOME=/usr/local/jdk
export CLASSPATH=$JAVA_HOME
export CLASSPATH=.:$CLASSPATH
export PATH="$PATH:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"



藐似我下的red5是binary版的,直接解压就可以用了
# cd /usr/local/red5
# ./red5.sh &
posted at 11/05/24 19:18 | 开发手记 - 工作日志 | 浏览(28) | 引用 | 评论

APC版本问题导致PHP出错
前段时间更换了新服务器,把之前的网站全部搬过来,可是上海校友会的论坛和ecshop的商城老出错,查看error_log,基本都是这个提示:

PHP Warning: mysql_fetch_array() expects parameter 2 to be long, string given in /data/web/koven/include/inc_function.php on line 57

PHP Warning: mysql_fetch_array(): The result type should be either MYSQL_NUM, MYSQL_ASSOC or MYSQL_BOTH in /data/web/koven/include/inc_function.php on line 57


可是我查看了这个函数
function fetch_array($query, $result_type = MYSQL_ASSOC) {
return mysql_fetch_array($query, $result_type);
}


没发现什么问题啊,但是改掉就没事了。
function fetch_array($query, $result_type = MYSQL_ASSOC) {
return mysql_fetch_array($query/*, $result_type*/);
}


阅读全文..
posted at 11/05/23 10:40 | 开发手记 - 工作日志 | 浏览(55) | 引用 | 评论

Lighttpd + PHP Install Manual
1. Install Optional Package
yum -y install zlib zlib-devel pcre pcre-devel


Solutions to some configure errors:


configure: error: C compiler cannot create executables
apt-get install libc6-dev.


configure: error: configure: error: pcre-config not found
apt-get install libpcre3-dev


configure: error: zlib-headers and/or libs where not found
apt-get install zlib1g-dev


configure: error: bzip2-headers and/or libs where not found
apt-get install libbz2-dev


configure: error: bzip2-headers and/or libs where not found, install them or build with --without-bzip2
yum -y install bzip2 bzip2-devel


阅读全文..
posted at 11/05/23 01:58 | 开发手记 - 工作日志 | 浏览(227) | 引用 | 评论

LAMP Configure Memo - For Debian And CentOS
1. Option Package Install

yum install gcc
yum install gcc-c++
yum -y install ncurses-devel
yum -y install libxml2-devel
yum -y install zlib-devel openssl-devel
yum -y install gd
yum -y install gd-devel
yum -y install flex
yum -y install diffutils
yum -y install curl curl-devel

apt-get install libncurses5-dev
apt-get install libncursesw5-dev
apt-get install libcurl4-gnutls-dev

阅读全文..
posted at 11/05/23 01:56 | 开发手记 - 工作日志 | 浏览(13) | 引用 | 评论

Sendmail+SpamAssassin+MIMEDefang Anti Spam Mail
Install SpamAssassin and MIMEDefang need a lots of optional package, you can get it from http://search.cpan.org

1. Install SpamAssassin

# groupadd spamd
# useradd -g spamd -s /bin/false spamd
# tar xzvf Mail-SpamAssassin-3.0.2.tar.gz
# cd Mail-SpamAssassin-3.0.2
# export LC_ALL=C
# perl Makefile.PL
# make
# make install
# cp spamd/redhat-rc-script.sh /etc/rc.d/init.d/spamd
# chmod 755 /etc/rc.d/init.d/spamd
# chkconfig --add spamd
# vi /etc/rc.d/init.d/spamd


阅读全文..
posted at 11/05/23 01:55 | 开发手记 - 工作日志 | 浏览(76) | 引用 | 评论



      << prev    1  ...  2  3  4  5  6  7  8  9  10  ...  79    next >>