videocache地址:
http://cachevideos.com/documentation/introduction
软件需要:
videocache、
squid-2.7、apache2、redis、python2.7
操作系统:
Ubuntu
文件缓存路径:
/va
r/
www/html/videocache/
操作步骤:
==================
1. 安装Python:Ubuntu系统自带Python2.7版本,跳过本步骤
2. 安装Mysql(这步没有用到,可以直接跳过)
$ apt-get install mysql-server mysql-client libmysqlclient-dev
$ mysql -uroot -proot
$ create database videocache
3. 安装apache2,安装完成后apache2自动启动,可以访问http://ip/测试apache2是否安装成功
$ apt-get install apache2
4. 安装squid2.7
$ wget
http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.gz
$ tar -xvf squid-2.7.STABLE9.tar.gz
$
./configure --prefix=/usr/local/squid --sysconfdir=/usr/local/squid/etc --bindir=/usr/local/squid/bin --sbindir=/usr/local/squid/sbin --mandir=/usr/local/squid/share/man --enable-gnuregex --enable-carp --enable-async-io=80 --enable-removal-policies=heap,lru --enable-icmp --enable-delay-pools --enable-useragent-log --enable-referer-log --enable-kill-parent-hack --enable-snmp --enable-arp-acl --enable-htcp --enable-cache-digests --enable-default-err-language=Simplify_Chinese --enable-err-languages="Simplify_Chinese" --enable-poll --enable-linux-netfilter --disable-ident-lookups --enable-underscores --enable-auth="basic" --enable-basic-auth-helpers="NCSA" --enable-external-acl-helpers="ip_user" --enable-x-accelerator-vary
$ make
$ make install
5. 修改配置squid文件,用下面的内容替换
# --BEGIN-- videocache config for squid
#
# PASTE THIS FILE AT THE TOP OF YOUR SQUID CONFIGURATION FILE
#
# (C) Copyright Kulbir Saini < saini@saini.co.in>
# Product Website :
#
# PASTE THIS FILE AT THE TOP OF YOUR SQUID CONFIGURATION FILE
#
# (C) Copyright Kulbir Saini < saini@saini.co.in>
# Product Website :