操做系統: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
了。