总结:在Ubuntu上安装FMS,跟linux不一样,Ubuntu需要先安装补丁,也许你的环境还需要lib神马的。。。
sudo -i
2。进入apt源列表
cd /etc/apt/sources.list.d
echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse" > ia32-libs-raring.list
4。更新源并安装ia32-libs
apt-get update
apt-get install ia32-libs
(apt-get 不要分开啊。。。)
rm ia32-libs-raring.list
apt-get update
1.下载
sudo wget http://download.macromedia.com/pub/flashmediaserver/updates/3_5_7/Linux/FlashMediaServer3.5.tar.gz;
2.解压 tar -xvf FlashMediaServer3.5.tar.gz;3.进入到解压缩文件中 cd FMS_3_5_7_r7009/
4.打补丁:
(1)下载补丁:wget http://www.joeterranova.net/code/fms-3.5-ubuntu.patch
(2)安装补丁:patch -p1 < fms-3.5-ubuntu.patch
5.安装FMS: sudo ./installFMS
6.安装过程中:
执行安装程序后会有些类似于同意条款之类的东西,直接 ctrl+c 就得,然后需要填写一些配置,一般默认就可以,我填的是这样的:
Installation directory = /opt/macromedia/fms //安装目录
FMS Server Port = 1935 //服务端口
FMS Admin Server Port = 1111 //管理端口
Administrative username = yingzi //管理员
Administrative password = (suppressed) //管理员密码
FMS owner = root
FMS service user = root
FMS service user group = root
FMS run as daemon = Yes
Start FMS = Yes
===========================================
以下配置是我自己的项目特殊需求,暂且放这了,如果你只是看怎么安装FMS,以上就ok了。
sudo ln -s /lib/i386-linux-gnu/libcap.so.2 /opt/adobe/fms/libcap.so.1;
sudo ln -s /lib/i386-linux-gnu/libexpat.so.1 /opt/adobe/fms/Apache2.2/bin/libexpat.so.0
sudo ln -s /opt/adobe/fms/Apache2.2/lib/libaprutil-1.so.0 /opt/adobe/fms/Apache2.2/bin/libaprutil-1.so.0
/opt/adobe/fms/conf/fms.ini 添加:ME.APPSDIR =/opt/adobe/fms/webroot/live_recorded
/opt/adobe/fms/conf/_defaultRoot_/_defaultVHost_/Vhost.xml 修改:<AppsDir>${ME.APPSDIR}</AppsDir>
chmod 777 /mnt/zkhy/webroot/live_recorded/videos/
(notice: /mnt 下是增加的盘符,/mnt/zkhy/webroot/live_recorded/videos 是自己创建的目录,用来存放video的)
Apache配置:设置 /opt/adobe/fms/Apache2.2/conf/httpd.conf webroot:/mnt/zkhy/webroot
(notice: 文件里如果直接写webroot,将提示没这个命令。所以我将带有webroot的字样换成了后面的/mnt/zkhy/webroot)
四、启动服务
sudo /opt/adobe/fms/fmsmaster start;
cd /opt/adobe/fms/Apache2.2/bin/;
sudo ./apachectl start
FMS directory = /opt/adobe/fms
FMS server port = 1935
Flash Mediea admin server port = 1111
Apache install = yes
administrative username =root
administrative password = root
service owner = root
service user = root
service group = fms
run as deamon = Yes
start flash media server = yes
启动FMS服务后的后续工作:
1.启动 buider, 打开video1项目的ip,
2.运行 生成swf文件。
3.替换code4job app中的video文件的swf文件.
4.运行code4job即可.