操做系统:Ubuntu 12.04.5 64bitweb
##安装ubuntu
首先安装AG Projects(MediaProxy的开发者)的签名key:bash
wget http://download.ag-projects.com/agp-debian-gpg.key sudo apt-key add agp-debian-gpg.key
在文件/etc/apt/sources.list
的最后加入下面两行:session
deb http://ag-projects.com/ubuntu precise main deb-src http://ag-projects.com/ubuntu precise main
注意 - precise
这里是和Ubuntu 12.04对应。spa
最后运行:操作系统
sudo apt-get update sudo apt-get install mediaproxy-dispatcher mediaproxy-relay mediaproxy-web-sessions
若是安装成功,运行media-relay --version
和media-dispatcher --version
,将会看到code
media-relay 2.6.1
以及ip
media-dispatcher 2.6.1
这是本文写做时MediaProxy的最新版,发布于2014年五月。ci
##运行开发
media-dispatcher start media-relay start
运行service media-relay start
时可能会出现以下错误
fatal error: IP forwarding is not available or not enabled (check /proc/sys/net/ipv4/ip_forward)
这时须要打开文件/etc/sysctl.conf
,设置(或者新加一行)
net.ipv4.ip_foward=1
保存并关闭文件,再执行
sysctl -p /etc/sysctl.conf
以后就能够正常启动media-relay
了。